What's New-Given Below
technicalsymposium
technicalsymposium
technicalsymposium

Free E-Mail Alerts

C/C++ Lab Program(s)/Materials

C Program For PRIME SERIES.

#include<stdio.h>
#include<conio.h>
void main()
{
int r,a,b,c=0;
clrscr();
printf("Enter the n value:");
scanf("%d",&r);
a=1;
while(a<=r)//for(i=1;i<=n;i++)
{
b=1;c=0;
while(b<=a)
{
if(a%b==0)
c=c+1;
b++;
}//end of while
if(c==2)
printf("%d",a);
a++;
}
getch();
}

technical symposium

Technicalsymposium.com-Latest Updates
Fresher’s Jobs/Symposium/Education Updates-Click below

Subscribe for Free E-Mail Alerts-Click below
technical symposium

Hosting by Yahoo!

About-Us    Contact-Us    Site-map

©copyright 2009 All rights are reserved to technicalsymposium.com