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 Control & Relay Panel? And Remote Control Center?
what happen when power factor of 2 parallely operated transformer become equle?
in small capacitor we use uf( micro farad) and in big quantity we used kvar. i want to know that in 1 kva how much will b uf(micru farad).
Why transformer use to generator neutral earthing purpose ?
why phase plates are used in transmission line????
What is the current carrying capacity of 35sq.mm flexible cable?
Give me check-list for electrical preventive maintenance of machine tool.
how to calculate slip ring induction motor stator and rotor currents??
Define Electrical Insulation and examples of Solid,Liquid and Gaseous insulating materials?
what is the difference in operation of 3 phase motor when am forward delta connection and reverse delta connection?
Which type of air compressor is used now a days in the market. Keeping in mind of energy efficiency and maintenance points. Relevant documents may also be sent on mentioned email ids.
What is the ohms law?
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)