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
Is there sort function in c?
Difference between strcpy() and memcpy() function?
Why c is called top down?
What are the uses of a pointer?
hi send me sample aptitude papers of cts?
What is #define size in c?
Is a house a mass structure?
Explain what are the __date__ and __time__ preprocessor commands?
how to execute a program using if else condition and the output should enter number and the number is odd only...
Explain how do I determine whether a character is numeric, alphabetic, and so on?
How do c compilers work?
what value is returned to operating system after program execution?
Differentiate between declaring a variable and defining a variable?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
What is data structure in c programming?