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 any possibility to create customized header file with c programming language?
What are pointers in C? Give an example where to illustrate their significance.
write a c program for swapping two strings using pointer
How can I send mail from within a c program?
Explain how are 16- and 32-bit numbers stored?
Why does the call char scanf work?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
largest Of three Number using without if condition?
Do you know the difference between exit() and _exit() function in c?
What is c token?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
How is pointer initialized in c?
List the different types of c tokens?
why return type of main is not necessary in linux
Do you know the purpose of 'register' keyword?