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...

wap to print prime number from 1 to 100 using c++

Answer Posted / digvijay ghildiyal

#include<iostream.h>
#include<conio.h>
void main()
{
int x,c,i;
clrscr();
cout<<"\n";
for(i=1;i<=100;i++)
{c=0;
for(x=1;x<=i;x++)
{
if(i%x==0)
c++;
}
if(c==2)
cout<<"\n"<<i;
}
getch();
}

Is This Answer Correct ?    16 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of control system?

1415


Batteries. What is the difference between Lead and Nickel batteries ?

2200


How to design a Unit auxiliary transformer for a power house having a unit of 65 MW and Generating voltage of 11 KV and Secondary voltage of 433V

2128


how to Select its CORE in electrical cables based on its applications? or Application of various types of electrical cable based on it CORE?

3251


we are having 110 Kv,250mA Electrostatic precipitators for coal fired boilers. what will be static voltage and current after discharge and what time it will remain before earthing?

1885


what is tri state logic gate

2192


I completed iti in2004 I was worked in A grade contractor can I get c licence

1707


can i use 4 number of circuit breaker as single phase manual change over switch? if yes then how plz also send ckt diagram at nazimzamurad@gmail.com

2115


What is the unit audit? if our Max demand is something and we found much more unit then how to improve our max demand?

1946


what r PID controllers?why they r used?what is there purpose?plz Explain in detail

2068


what is the interrelation between voltage current torgue speed and magnetic flux in case of different types of electric motors

2083


all the technical question with answers pleas send your email id ramar_eee@yahoo.com

2021


Make a list observation on Transformer?

2423


I would like to know that the fault curretn at base load and at 10% generation will be same? Fault level of BUS remain same with different generation?

1849


What is load boxes ?

2153