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 |
While connecting bulb in Series/Parallel,there is any difference in glowing
On Which Pressure PRV is operated.
What is function of inverter? and who it's operate & what are controlling devices are used?
what is the effect of leading power factor on Power transformers in existing in major power utility
Which addressing mode contains the address for data as a part of the instruction in 8085.
What is DPR relay, And what for??
What is the different type of class in CTS and why it is required
What is the polarization index value ? (Pi value)and simple definition of polarization index ?
number of I/O devices in siemense plc
oil sample dielectric test gives the insulation rupture voltage at 26 kv. is this transformer safe to be operated . The working voltage is 11 kv
Why use only DC supply to charge batteries why not AC Supply??
I WANT TO know WHICH WAY IS BETTER FOR CONNECTION BETWEEN POWER TRANSFORMER AND MAIN DISTRIBUTION PANEL. 1-IS BETTER WE USE CABLE? 2-IS BETTER WE USE BUS DUCT? my transformer rate power is 2500KVA
Civil Engineering (5086)
Mechanical Engineering (4456)
Electrical Engineering (16639)
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)