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 calculate energy stored in a capacitance

1102


What is meant by rotor?

1218


what id a dry type transformers and its function ?

1712


What is core CT & it's function?

2125


can you plz send l&t aptitude questions if available its urgent plz plz plz

2061


while doing high potential for 11KV 3 core cable how much leakage current will obtain?, what will be acceptance value?

2816


WHAT IS MOBILE SUB-STATION? & REALLY BENEFIT IN INDIA

2019


is this the formula of building wiring to get the main breaker.Watts/volts*.8%+higher motor*(25%)=ampere. yes or no or send the correct formula for building wiring.

1635


what are the interview question asked in wind mill about electrical

2298


why normally Generator rating are between 11Kv to 22Kv?

4530


What is the loss of power of transformer 220kv/33kv,63/80mva of % imp12.05 at 80%load

1793


What is 11 N1 and 12 N2 in single phase Transformer ?

1873


What is signal flow graph?

1046


what is DRP panels?

2086


What is lc oscillator?

1135