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 |
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.
What is the function of Igniter in 250 watt HPMV street light?
Different between megger and contact resistance meter
HOW TO CALCULATE BATTERY BACKUP TIME & AH CAPACITY AGAINST UPS KVA RATING?
Batteries. What is the difference between Lead and Nickel batteries ?
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.
what is the meaning of Air condition "TON"
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?
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?
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..
for a 11kv transmission line what capacity of CTs & PTs are required?
Why the pointer of earthing of 3 pin top is made thick and long compared to the phase and neutral pin ?
Civil Engineering (5086)
Mechanical Engineering (4453)
Electrical Engineering (16638)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)