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

What are loops c?

640


What are header files? What are their uses?

652


Write a program to generate random numbers in c?

679


What is the use of getchar functions?

701


What is a double c?

603






Write a simple code fragment that will check if a number is positive or negative.

721


What is sizeof return in c?

633


How many types of functions are there in c?

601


What is the difference between arrays and pointers?

647


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2256


What is a void pointer? When is a void pointer used?

643


What is your stream meaning?

628


What is the purpose of main( ) in c language?

649


What is file in c preprocessor?

671


Explain what are binary trees?

624