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

how to extend relay operating timing in 24V dc relay card (without using Timer )

2007


What is the formula to find out two phase active & reactive power

2192


what is the standard duration after failure EB power

1839


How the circuit breaker is selected for Induction motor of 100 kW, 415 volt, 0.85 power factor, 0.95 efficiency ?

1611


Can 4pole (3 phase+neautral )RCCB proper functioning in only 3 phase load (no neautral, no Earth) ?

2157


what is the significance of cabability curve of alternator

2231


Pls tell me whether we can use EN3A material for shafts of Permanent magnet alternator.What will be the effect of magnetic and nonmagnetic material for shafts on magnetic properties of PM rotor .

3519


what is protection class current transformer.

4317


how to check three phase motor torque value?

2374


Different STANDARDS (BS, IS, IEC etc) gives different informations on CT specification. How they correspons w r t each other (i.e I mean to say BS provides "knee point voltage" but IS does not, then how can i select CT)

1973


hai friends i have BSNL JTO exam on next month so if any body have model question paper or give preparation tips to my mail id kumar4486@yahoo.co.in this will helpfull for my future .plz & thank u by kumar

1991


What is resistance reading of earth copper rod with grid and without grid?

1150


What is purpose of reactor?.What is different between line and bus reactor?

1949


please send 5yearje solved papers on my email himmatsinghnathawat@gmail.com

1927


what is doid

2818