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
Explain how many levels deep can include files be nested?
What are global variables?
Explain how do you declare an array that will hold more than 64kb of data?
Is c call by value?
What are the keywords in c?
How are structure passing and returning implemented?
what are bit fields in c?
What is %s and %d in c?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
Do pointers store the address of value or the actual value of a variable?
How do you declare a variable that will hold string values?
Tell me when is a void pointer used?
Combinations of fibanocci prime series
Explain what is the benefit of using #define to declare a constant?
What functions are used for dynamic memory allocation in c language?