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 program for odd numbers?

Answer Posted / pratikjis@yahoo.com

#include "stdio.h"
#include "conio.h"

void main()
{
int i;
clrscr();
printf("Enter the number");
scanf("%d", &i);
if(i%2==0)
{
printf("the number is even %d", i);
}
else
{
printf("The number is odd %d", i);
}
getch();
}

Is This Answer Correct ?    36 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the = symbol and == symbol?

1054


Function calling procedures? and their differences? Why should one go for Call by Reference?

1041


What are the Advantages of using macro

1115


Is a pointer a kind of array?

1115


Which is best book for data structures in c?

1039


What is c programing language?

1043


What is wild pointer in c with example?

1020


What is strcmp in c?

1018


What is an example of structure?

981


What is getch () for?

1149


Why do we need arrays in c?

1084


please explain every phase in the "SDLC" in the dotnet.

2560


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1095


What is difference between function overloading and operator overloading?

1046


Can we access array using pointer in c language?

1041