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

why we dont prefer ac voltage controller instead dimmerstat [if both have same rating] for conducting experiments in laboratories?

2194


1 “earthing” for bonding of equipment and circuits to common plant earth electrode potential, 2 “protective earthing (PE)” when this bonding is required for personal safety provisions 3 “grounding” for interference suppressing bonding of screens, sys-tems with ground level 4. low-impedance earthing ? 5.primary earthing system and secondary earthing system what is that? 6.earthing electrode or mesh net earthing electrode ? very confusing , simple but very informative help required ? i will be very very thankful to you guys.

2113


how choose conductor&depending upon load

1958


What is the estimated total hydropower potential of india?

1189


What is step signal?

1092


what's the difference between 'shaft power demand' and 'BHP' , when we consider electrical load list.

1576


how we control automatic generator i'e with to supply (main supply and local generator) when the main supply was break to supply the local supply automatically to begin supplying power.I now this control circuit is the combination of contactor time delay contactor switch and overload relay .but my question is how we combine those component thank you

2037


Explain the term parallel path in dc machin ?

2255


What are the basic elements used for modeling mechanical rotational system?

1147


what is difference between 9kv 5ka surge arrester and 9kv 10ka surge arrester.

1902


How will polarity test of Dy5 Transformer ?

2313


wat is meant by PX class in ct?

2090


What is the function of Governor in Hydro Power Station? What is the Function of Lightning Arrestor Voltage Transformer (LAVT)?

2852


why ct ,cvt should be stored in a vertical position?

2690


i need about 10 years of GATE solved papers in pdf format and even mock tests toooo

1713