google-site-verification: googlef8aa845b858144d3.html COMPUTER SCIENCE NOTES: PRIME NUMBER (Example 3)

Monday, July 17, 2017

PRIME NUMBER (Example 3)

/* 3 program of prime number Note=> 1 is not prime number */
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int i,n,flag=0;
clrscr();
printf("Enter a number:");
scanf("%d",&n);
for(i=2;i<=sqrt(n);i++)
{
if(n%i==0)
flag=1;
}
if(flag==1)
printf("Not prime number ");
else
printf("Prime number ");
getch();
}

2 comments:

  1. Online Casino UK – Review | Lucky Club
    Best Casino UK 【33k1.com】⭐️ Are there any good bonuses for playing casino UK slots? You luckyclub.live can also try online casino UK.

    ReplyDelete
  2. The best casino sites and apps in India - JTHub
    Read reviews, compare customer ratings, see 삼척 출장마사지 screenshots, 사천 출장안마 & learn more about The Best 양주 출장샵 Indian Casino Sites (2021) and get the 광명 출장샵 latest 속초 출장샵 news,

    ReplyDelete