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's the difference between non break power supply and non break non short break power supply

0 Answers  


what are the protection equipments used betbeen HT line and transformer in a power plant

4 Answers  


from which formula we select a capacitor rating?

4 Answers   Suzlon,


What's ND relay & it's functions?

2 Answers  


earth also having a gravitational force (magnetic field of north and south)but it attracts any object compare to this theartifical magnetic cant perform same as earth why?

0 Answers  


What difference between voltage and current

5 Answers  


How to calculate the copper in HT motors if KW, RPM & Voltage is given

0 Answers   Control Dynamics, NTPC,


last week we did the REF relay test by closing single pole (R phase) of CB and apply 380V at the primary of delta transformer. we get 33A at the primary of the R phase star end. but we get 380A at both R an B in delta side. how and why?

1 Answers   Siemens,


what is the meaning of x,m,k in the relays?

0 Answers   ITC Infotech,


how to select the automotive wire size by mathematical calculation. for xenon headlamp with ballast. the ballast given data voltage 10-17v,current permenant 6amp, run up phase is 15amp, peak at swicth on max 400micro sec is 40amp.the sum of cable resistance is 150mohm.please provide referenc document if any for relating the peak at switch on current,time & wire wire size

0 Answers   Tyco,


What is dielectric loss?

0 Answers  


EXPLAIN METOD OF IMAGE OF TRANSMISSION LINE/ WHAT ARE ITS PRACTICAL APPLICATION?

0 Answers   Coal India,


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)