Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

wap to print prime number from 1 to 100 using c++

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the polarization index value ? (Pi value)and simple definition of polarization index ?

1196


Load break swicth maintenance procedure.

1752


What is I to C?

2132


Why 11kv to be generated in generation station

1653


what is KA rating and how can we choose switchgears on applications

1429


A jet of fluid strikes a plate What was the force required to counter it?

1859


At what speed an electric car can run with 2 HP motor of weighing 400 kg?

1803


What size cable (based on voltage drop) is required to supply a 40 A three phase boiler if the wiring system is 75V single insulated cables installed in non-metallic rigid conduit 56m from the main switchboard? Voltage drop in the consumer's mains is 8V.

1962


Why two phase welding machine is used instead of three phase welding machine.

1910


What is the diffrence (Technical & Construction ) between CBCT & Normal CT?

2009


What is the breaking capacity of transformer and how can we calculate the breaking capacity of tranformer

1912


please anybody help me to find out the BHEL trainee Exam previous year questions papers . if u ve pls. send it to surekhared@gmail.com

1942


why occ characteristics curve in not tracing back when we are bringing back the rhoestat?

1854


Usage of flywheel diode in relays

1907


what is the standard duration after failure EB power

1819