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 a newline escape sequence?

1097


Can a pointer be null?

1020


How do you determine a file’s attributes?

1075


How can I split up a string into whitespace-separated fields?

1052


How do you generate random numbers in C?

1191


What is the purpose of macro in C language?

1113


What is the purpose of the statement: strcat (S2, S1)?

1163


how to find binary of number?

4431


code for replace tabs with equivalent number of blanks

2151


What is operator promotion?

1058


What is a pointer in c plus plus?

1296


Explain how can you avoid including a header more than once?

1089


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

1170


What standard functions are available to manipulate strings?

1145


Difference between malloc() and calloc() function?

1196