Answer Posted / v.karthikeyan
#include <stdio.h>
main()
{
int num;
printf("Enter a number to know the entered number is odd or
even \n");
scanf("%d",&num);
if (num%2==0)
{
printf(" The number is Even");
else
printf(" The number is Odd")
}
getch();
}
| Is This Answer Correct ? | 88 Yes | 15 No |
Post New Answer View All Answers
What functions are used in dynamic memory allocation in c?
Write a function that will take in a phone number and output all possible alphabetical combinations
What is the return type of sizeof?
How do you determine the length of a string value that was stored in a variable?
How do you construct an increment statement or decrement statement in C?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Write a program to print factorial of given number using recursion?
What the different types of arrays in c?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What are the different types of linkage exist in c?
Why dont c comments nest?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
Why C language is a procedural language?
Does free set pointer to null?
How to set file pointer to beginning c?