Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is there sort function in c?

1022


Difference between strcpy() and memcpy() function?

1155


Why c is called top down?

1167


What are the uses of a pointer?

1153


hi send me sample aptitude papers of cts?

2166


What is #define size in c?

1197


Is a house a mass structure?

1097


Explain what are the __date__ and __time__ preprocessor commands?

1130


how to execute a program using if else condition and the output should enter number and the number is odd only...

2307


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1138


How do c compilers work?

1141


what value is returned to operating system after program execution?

2124


Differentiate between declaring a variable and defining a variable?

1048


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1418


What is data structure in c programming?

1083