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
What are operators in c?
What is the benefit of using #define to declare a constant?
ATM machine and railway reservation class/object diagram
Write a program with dynamically allocation of variable.
What are the 4 data types?
what is the significance of static storage class specifier?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What is the most efficient way to count the number of bits which are set in an integer?
How variables are declared in c?
List a few unconditional control statement in c.
Explain logical errors? Compare with syntax errors.
What is the difference between a function and a method in c?
List the difference between a "copy constructor" and a "assignment operator"?
What is wrong with this initialization?