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 / devi

#include<iostream.h>
#include<conio.h>
void main()
{
int i;
clrscr();
for(i=32;i<=50;i++)
{
if(i%2==1)
{
cout<<"Odd Number is:"<<i<<endl;
}
}
getch();
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2536


Differentiate between a copy constructor and an overloaded assignment operator.

1094


How do you declare a set in c++?

961


What is pointer with example?

1066


Why do we use classes in programming?

1045


If there are two catch statements, one for base and one for derived, which should come first?

1037


daily Routine of father

1412


Write a note about the virtual member function?

1066


Is there any function that can skip certain number of characters present in the input stream?

1079


What is a constant reference?

1086


What is prototype in c++ with example?

1162


Does c++ vector allocate memory?

1018


What are stacks? Give an example where they are useful.

1066


Explain the different access specifiers for the class member in c++.

1023


What are files in c++?

1044