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 library is sizeof in c?
How many bytes is a struct in c?
What is stack in c?
What are the types of pointers?
Why we write conio h in c?
What is the explanation for prototype function in c?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
What is volatile keyword in c?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
What is pragma c?
What is preprocessor with example?
How to declare pointer variables?
Write a program in c to replace any vowel in a string with z?
What is the difference between declaring a variable and defining a variable?
What is c programming structure?