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
a c code by using memory allocation for add ,multiply of sprase matrixes
Does * p ++ increment p or what it points to?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
What is the difference between new and malloc functions?
What is the process to create increment and decrement stamen in c?
What is the c language function prototype?
Is c weakly typed?
Here is a good puzzle: how do you write a program which produces its own source code as output?
What language is c written?
Why c is a procedural language?
When can you use a pointer with a function?
What is #pragma statements?
What is a string?
Why we use break in c?
Stimulate calculator using Switch-case-default statement for two numbers