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



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

Answer / 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

More Electrical Engineering Interview Questions

What is the meaning of maximum demand

21 Answers   MN Dastur,


it is clear that volts equal to the current as per ohms law. is it appliable to the AC power or only for DC. if it is appliacable to AC in transformers when voltage increases the voltage decreases ????? why??????????????

13 Answers   Bhel,


what is the suitable voltage of transmission line to transmit 10000w power through 250 km. (a)11kv (b)33kv (c)66kv (d)132kv ]and please tell me whats the logic behind it

7 Answers   ONGC,


I have raw material for making Compact-Choke for flourscent lamp of 40 Watts. We are suppose to get 0.4 amps output at end. but we are getting 0.42 or 0.44 amps and above. We have done many testings in different but nothing worked out. Please suggest me how to get the correct output. We are using 1. core winding of 700 windings of aluminium 2. E-shape iron fillings and I-shape iron fillings to surround the winding.

6 Answers  


What is the current flow in 230v ac supply ? What is the current flow in 415v Ac supply ?

1 Answers  


I HAVE A INCOMING 100A MCCB TPN 25KA, CABLE LENGHT OF 80M 70MM CABLE SIZE FROM MAIN SUBBOARD TO NEW DB.BASE ON THE FAULT LEVEL SETTING OF 45KA.I WOULD LIKE TO FIND OUT 25KA ENOUGH KA. APPRECIATE IF SOMEBODY CAN ASSIST ME WITH FORMULA FOR THIS. FRM: JEFF

0 Answers  


Slipring moter find external resistance

1 Answers  


Why DG set rating in KVA

13 Answers   Crompton Greaves,


Why dc Supply used in Control circuit.

12 Answers   HP,


What are the main parts of central chiller plant? Explain the function of each stage.

0 Answers   HSL, Shankar Electricals,


what is the maximum rating(KVA) of transformer can be used in distribution side..(11KV/440v) and why??

1 Answers   Jindal,


For what purpose an AVR in generator sensing generator output voltage?and how the sensing is done by AVR?

3 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5086)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4456)
  • Electrical Engineering Interview Questions Electrical Engineering (16639)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)