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 JE exam?
What is formula calculation size cable wire ?
why we use 50 hz frequency in india .. why not 60 hz
How to calculate the current in DG What are the type of power pls explain with related formulas
1 Answers Corona Enterprises, Sodexo,
what types of load we get from the national grid? is this capacitive or inductive?
what is the principle of synchronous motors?
What is the maxvoltage drop allowed at any healthy joint at full load ?
as per IE stranded what is max voltage between neutral to earth. 100 kva transformer neutral solid earth. min and max values i need to ans for RTI question
what is the differnce between high impedance relay and low impedance relay
TO operate transformers in parallel, vector symbol of the both should be same.If one transformer name plate is not there, how can we conclude that whether the transformer is having the same vector symbol or not?
i am swathi, b.tech 4th year. In smps(switched mode power supply)we are using diodes,mosfets,igbts for controling of current. And my question is why we did not use thyristors(scr)? it is also act as a switch,then what is the drawback of scr as compared to above transisters> if we use the scr,then what is happening ? plz give reply as soon as possible bcoz i am doing project on smps. plz frnds i want ans for that. if anybody know the ans plz send to my e-mail id /swathi.tadakapally@gmail.com/
which type of effect of turbine and generator reverse power protection ?
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)