Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #72.8K
~827 People Reached
Favorite Forums
Favorite Tags
c x 2

1 Posted Topic

Member Avatar for kjpwa

well i thnk ths will solve ur prob................... [code] #include<stdio.h> void prime_no(int n); void main() { int n; printf("ENTER THE NO. OF PRIME NOS. U WANNA SEE"); scanf("%d",&n); prime_no(n); return; } void prime_no(n) { int i,j,count; for(i=2,count=1;count<=n;i++) { for(j=2;j<i;j++) { if(i%j==0) break; } if(j==i) {printf("%d\n",i); count++; } } } [/code]

Member Avatar for ANUJ SHROTRIYA
0
827

The End.