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

Explain the advantages and disadvantages of macros.

1139


Do you know what are the properties of union in c?

1131


What is a void pointer? When is a void pointer used?

1102


What are the different types of errors?

1200


Describe the modifier in c?

1140


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

2123


What are the types of macro formats?

1163


Is main is user defined function?

1204


Explain how do you sort filenames in a directory?

1069


What is the general form of function in c?

1068


What is the difference between functions abs() and fabs()?

1207


What is the difference between functions getch() and getche()?

1137


Disadvantages of C language.

1154


What is the use of a ‘’ character?

1138


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2691