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
write a program to print data of 5 five students with structures?
write a program to display all prime numbers
How many parameters should a function have?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
Is struct oop?
Can we add pointers together?
In c language can we compile a program without main() function?
What is the difference between local variable and global variable in c?
How can I call a function with an argument list built up at run time?
Why can arithmetic operations not be performed on void pointers?
Is python a c language?
What are the advantages of using linked list for tree construction?
Explain how do you print only part of a string?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
Is calloc better than malloc?