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 resistance of the field winding of a d.c. Shunt generator kept low?

0 Answers  


how to convert 1 phase power to 3phase power by using induction motor. . . .

1 Answers   BK Anand,


why does connected a indutor with mnsformeretering core of current transformer ?

0 Answers  


load increase means 1 resistance increase 2 load resistance decrease 3 current increases through load 4 none of these

3 Answers  


what is negative d.c. voltage, why this voltage is used in base transciever station.

0 Answers   Vintage Air,


Should power factor be low or high?

0 Answers  


How CFL &T5 tube light glows?

0 Answers   HAL,


what is the main different between distribution transformer and power transformer ?

7 Answers   Sail,


Why electricity in India is in the multiples of 11 like 11kv, 22kv, 33kv

2 Answers   KPIT,


For a Potential Transformer(PT), the primary neutral terminal must be grounded before energization. Why....? What will be heppend if we energize the PT without grounded the primary neutral point? Why..........?

2 Answers  


does the Trivector Meter of three phase automatically takes care of the low power factor and gives the reading accordigly or it does not take care of the Power factor while giving the readings please explain

0 Answers  


I have a CT meter with ratio 60/5. The meter reading of previous month was 3290.49 and that of current month was 3797.26. How many chargeable units as per normal meter should be my reading.

0 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)