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 are applications of Shunt release?
2 Answers Techno Electric and Engineering,
after syncnhronistion how generator speed controlled by grid
what is the clearance time circuit breakr?
explain which quantities change in the starting and the and the running condition in induction motor
why dc is not given to transformer
What is milivolt dop test in Busducts? What is its significance & procedure to do the test?
how i calculate the syncrones generator NGR resistance .if we have a 6mw generator line voltage of generator 11kv also line current 393.3 ampere.
how to calculate the kw, Amps consumed by a capacitor, give me the formula for KVAr into capacitance,KVAr into KW & KVA, Amps
what is the operating time for LBB and how does the LBB relay realise whether cb is opened or not?
Explain the operation of damper winding
how much amps will get from a 360/11kv line
how and why are capacitors are used to improve powerfactor?
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)