write a Program to dispaly upto 100 prime numbers(without
using Arrays,Pointer)
Answer Posted / mnagal bhaldare
#include<stdio.h>
#include<conio.h>
int i;
i=1;
for(i=1;i<=100;i++)
{
if(i%2==0)
printf("The prime numbers are%d",i);
else
printf("These are not a prime numbers %d",i);
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are local static variables? How can you use them?
FILE PROGRAMMING
What are derived data types in c?
In which header file is the null macro defined?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
Difference between exit() and _exit() function?
What is sizeof c?
Explain c preprocessor?
What are the storage classes in C?
Can we declare a function inside a function in c?
What is the function of this pointer?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is queue in c?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
Process by which one bit pattern in to another by bit wise operation is?