/*WAP to check enter no. is prime or not*/
#include<stdio.h> #include<conio.h> void main() { int num1,num,flage,i=2; clrscr(); printf("enter no."); scanf("%d",&num); num1=num/2; while(i<=num1) { if(num%i==0) { flage=1; } i++; } { if(flage==1) printf("not prime"); else printf("prime"); getch(); } }
Read & Rate interesting articales to earn money!
per artical $0.03 to $0.10
link: http://www.readbud.com/?ref=4096068
EARN MONEY BY BUMPING SITES, DAILY 5 ADS TO CLICK,
PER CLICK 0.02$, DAILY 0.10$ EARN, MINIMUM PAYOUT 15$,
YES ITS FREE TO JOIN
http://www.MoneyBumper.com/Main.cfm?R=134526
No comments:
Post a Comment