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 JE exam?

0 Answers  


What is formula calculation size cable wire ?

0 Answers  


why we use 50 hz frequency in india .. why not 60 hz 

3 Answers  


How to calculate the current in DG What are the type of power pls explain with related formulas

1 Answers   Corona Enterprises, Sodexo,


what types of load we get from the national grid? is this capacitive or inductive?

1 Answers  


what is the principle of synchronous motors?

3 Answers   The Grand,


What is the maxvoltage drop allowed at any healthy joint at full load ?

1 Answers   Kirloskar, Seyadu,


as per IE stranded what is max voltage between neutral to earth. 100 kva transformer neutral solid earth. min and max values i need to ans for RTI question

2 Answers  


what is the differnce between high impedance relay and low impedance relay

4 Answers   Areva,


TO operate transformers in parallel, vector symbol of the both should be same.If one transformer name plate is not there, how can we conclude that whether the transformer is having the same vector symbol or not?

4 Answers  


i am swathi, b.tech 4th year. In smps(switched mode power supply)we are using diodes,mosfets,igbts for controling of current. And my question is why we did not use thyristors(scr)? it is also act as a switch,then what is the drawback of scr as compared to above transisters> if we use the scr,then what is happening ? plz give reply as soon as possible bcoz i am doing project on smps. plz frnds i want ans for that. if anybody know the ans plz send to my e-mail id /swathi.tadakapally@gmail.com/

5 Answers   EEE, TCS,


which type of effect of turbine and generator reverse power protection ?

0 Answers   NTPC,


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)