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


Please Help Members By Posting Answers For Below Questions

In C, What is the #line used for?

1085


write a program in c language to print your bio-data on the screen by using functions.

6259


C language questions for civil engineering

1254


Give the rules for variable declaration?

687


Combinations of fibanocci prime series

1123






What are the advantages of c preprocessor?

726


What are called c variables?

588


How can I ensure that integer arithmetic doesnt overflow?

616


How can you check to see whether a symbol is defined?

602


Can you return null in c?

607


How can you increase the size of a dynamically allocated array?

655


Write a program for finding factorial of a number.

640


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1914


Is there a way to jump out of a function or functions?

650


Can we assign integer value to char in c?

625