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 effect on power factor, shown by a trivector meter; incase of reverse phase sequence. If the power factor of a system is lag what meter will show in case of reverse phase sequence connected to the meter. and What in case of lead.

0 Answers   TATA,


What is the function of Igniter in 250 watt HPMV street light?

1 Answers  


Different between megger and contact resistance meter

3 Answers  


HOW TO CALCULATE BATTERY BACKUP TIME & AH CAPACITY AGAINST UPS KVA RATING?

2 Answers  


Batteries. What is the difference between Lead and Nickel batteries ?

0 Answers  


how can i determine the gear ratio for a rack and pinion system if an electronic gate operated by an electric motor is to travel a distance of 5meters in 15 seconds.

0 Answers  


what is the meaning of Air condition "TON"

3 Answers  


Dear All, Can anybody please tell me which value(saturated or unsaturated) of sub-transient reactance(Xd") we take for the calculation of fault current of the system?

2 Answers  


How to specific gravity of battery will check, i didnt saw any hydrometer. & say me how to dip into the battery what are the specifications are given in the hydrometer?

1 Answers  


Can anyone please provide me details of MCCB/Contactor/SFU rating calculations for a motor feeder..for example 50 kw.. not from type-2 cordination chart. i want manual calculations..

0 Answers  


for a 11kv transmission line what capacity of CTs & PTs are required?

4 Answers  


Why the pointer of earthing of 3 pin top is made thick and long compared to the phase and neutral pin ?

3 Answers   Sanima Hydro Power,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5086)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4453)
  • Electrical Engineering Interview Questions Electrical Engineering (16638)
  • 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)