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
Why static variable is used in c?
What library is sizeof in c?
What tq means in chat?
what will be maximum number of comparisons when number of elements are given?
What is the difference between text files and binary files?
Differentiate between the expression “++a” and “a++”?
What are the types of operators in c?
difference between native and cross compilers
Write a program to print ASCII code for a given digit.
How many levels of indirection in pointers can you have in a single declaration?
How can my program discover the complete pathname to the executable from which it was invoked?
Is there a way to compare two structure variables?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
Why do we use null pointer?
Is c procedural or object oriented?