Joined
Last Seen
-3 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
0 Endorsements
Ranked #72.9K
2 Posted Topics
Re: prime numbers
#include <stdio.h> #include <conio.h> void main() { int a[100],i,j=2; clrscr(); for(i=0;i<100;i++) a[i]=i+1; printf("Prime Number between 1 to 100 \n"); for(i=0;i<100;i++) { for(j=2;a[i]>j;j++) { if(a[i]%j==0) break; } if(a[i]==j || a[i]==1) printf("%d\t",a[i]); } getch(); }
i wanted to show the magic of a digit nine to my friensd in c so any one plz help me
The End.
Prashant_3