What's New-Given Below
technicalsymposium
technicalsymposium
technicalsymposium

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();
}

More Lab Programs with Answers -Given Below-Click and Get Freely

Hosting by Yahoo!

About-Us    Contact-Us    Site-map

©copyright 2009 All rights are reserved to technicalsymposium.com