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

Where is volatile variable stored?

831


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1720


What are the general description for loop statement and available loop types in c?

894


how to make a scientific calculater ?

1788


Is multithreading possible in c?

753


Tell me with an example the self-referential structure?

751


how could explain about job profile

1648


why we wont use '&' sing in aceesing the string using scanf

2059


cavium networks written test pattern ..

3804


int far *near * p; means

3295


Write the Program to reverse a string using pointers.

788


Explain about block scope in c?

852


Where define directive used?

807


What does node * mean?

952


What are the different data types in C?

939