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...

write a C++ programming :if the no is between 32 to 50 it
will be odd.

Answer Posted / debotri das

#include<iostream.h>
#include<conio.h>
void main()
{
int i=32;
clrscr();
while(i<=50)
{
if(i%2==0)
cout<<i<<"\n";
i++;
}
getch();
}

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by entry controlled loop?

1054


Is map thread safe c++?

1021


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

944


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

1139


Which sort does c++ use?

966


What is a flag in c++?

1006


Is nan a c++?

1090


Explain virtual class and friend class.

993


What do you know about near, far and huge pointer?

1054


how to explain our contribution in the project?

3635


What is an inclusion guard?

1108


What is ios in c++?

1158


What is the use of ::(scope resolution operator)?

1016


What is the difference between a template and a macro?

995


How the endl and setw manipulator works?

961