Answer Posted / vivek singh
#include<stdio.h>
#include<conio.h>
void main()
{
int num;
printf("Enter the number:");
scanf("%d",&num);
if(num%2==0)
{
printf("Number is Even");
}
else
{
printf("Number is Odd");
}
getch();
}
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is d scanf?
What are comments and how do you insert it in a C program?
What is c basic?
What does #pragma once mean?
In which header file is the null macro defined?
List the different types of c tokens?
Write a program to implement queue.
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
What is string concatenation in c?
Write programs for String Reversal & Palindrome check
What is calloc malloc realloc in c?
Can you define which header file to include at compile time?
How many header files are in c?
What is the explanation for modular programming?
Which built-in library function can be used to match a patter from the string?