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 the procedures followed for underground cable laying.....???
why mostly conductor made by 7 nos wire?
What happen if 200KVAR capacitor continuesly connected to load and all the plant machinaries are not in working?
What is the formula to calculate the rating of a three phase air circuit breaker
why capacitor bank shorted by resistance ( 3 terminal )
why we are caling 440 volt 3 phase supply instead of 660 volt 3 phase supply? because each phase as a voltage of 220 volt. if anybody know the answer for my question please send it to my mail id. thank you.
3 Answers College School Exams Tests, Jindal Steel and Power, JIOL, NEC,
Why neutral cable carry current.
what is the write prosidure of stringing of 8meter pcc pole.
In industries Power factor is maintained by installing a suitable KVAR bank, How is the PF maintained for domestic use, where is the capacitor bank connected
Why transformer, generator, ups rating kva?
What is the effect if power factor is above 1 or unity.
What is mean by CT Saturate? how do we calculate?