i will help u out
#include<stdio. h>
#include<conio. h>
main()
{
int i,p=0,j;
for(i=1;i<=100; i++)
for(j=1;j<=i;j+ +)
{
if(i%j==0)
p++;
}
if(p==2)
printf("%d",i);
p=0;
}
getch();
}...
User Profile
Collapse
-
as u r a brand new perseon in this field u need to have a compiler which has a complete reference in it to help the new ones. so u better use turboc3 compiler....Leave a comment:
-
arrays actually are a collection of data. that is u do not need to enter the data again and again. when u define an array it occupies some space in the memory. u can call them memory cells. lets see it with an example. suppose u wrote int arr1[10], that means that your variable arr1 has occupied 10 memory locations in the memory. when u enter data in the array or want to get the output from the array u use looping in order to accomplish this job...Leave a comment:
No activity results to display
Show More
Leave a comment: