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

What is auto type c++?

1084


Incase of a function declaration, what is extern means?

915


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

1012


What is the use of endl in c++ give an example?

1118


What is the best c++ book?

1225


Are strings immutable in c++?

1125


Write my own zero-argument manipulator that should work same as hex?

1002


Give example of a pure virtual function in c++?

1102


If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

996


Is c++ high level programming language?

1080


How to give an alternate name to a namespace?

1051


What is namespace & why it is used in c++?

1049


What is std :: flush?

1012


Define pointers?

1012


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

958