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 |
Why annealing is done on transformer core manufacturing process?
What is the definition of ohms law?
7 Answers AZ Engineering, Ecil,
Why the Motor takes High Current in Starting time?
I have 4 DG set with 1500KVA rating. system breakers are 11KV & alternator are 415 Volts. Between alternator & breaker one stepup transformer used. i want to Know what is max. resistance for body earthing & 415 & 11KV V Neuteal earthing. my fault current is 14 times for 2 sec.
How can I calculate the trnaformer effciency at different loading condition?
hey guys i recently saw a long transmission line in which a sort of balloons in red and white color were hanging at each section.do u have any idea why are they kept for?
what is the difference between MCCB and SFU in terms of their application?
2 Answers Secure Meters, Tata Teleservices,
how to calculate the knee point voltage of current transformer?
redundant connection in contactor?
what is harmonics?
What are the basic & Majour problems in UPS ?
0 Answers Roto Power, RotoPower,
75kw drive operated motor current fluctuation from(85-130)ampere.current setting in drive is 130amp.sometimes motor trip when current limit cross 130amps.I change the drive. still current fluctuate between 80-130amps but in this time motor not trip,current setting in drive is 130amps.where is the problem?