write a Program to dispaly upto 100 prime numbers(without
using Arrays,Pointer)
Answer Posted / karthik
void main()
{
int i,j,m;
for(i=1;i<=100;i++
{
m=0
for(j=1;j<i;j++)
{
if(i%j==0)
m++;
}
if(m==0)
printf("%d",i);
getch();
}
| Is This Answer Correct ? | 54 Yes | 87 No |
Post New Answer View All Answers
What is the use of pragma in embedded c?
Should a function contain a return statement if it does not return a value?
What does s c mean on snapchat?
Where is c used?
how can I convert a string to a number?
What is ambagious result in C? explain with an example.
What is time null in c?
What is 1f in c?
What is difference between main and void main?
What is atoi and atof in c?
What is logical error?
How can my program discover the complete pathname to the executable from which it was invoked?
what are the different storage classes in c?
What are the types of variables in c?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58