Answer Posted / nirdesh pal
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
printf("enter the number");
scanf("%d",&i);
if(i%2==0)
{
printf("number is even");
else
printf("number is odd");
}
getch();
}
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Explain how can you check to see whether a symbol is defined?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
How can a string be converted to a number?
What is methods in c?
Explain that why C is procedural?
How can I open files mentioned on the command line, and parse option flags?
Are there namespaces in c?
How to get string length of given string in c?
How can variables be characterized?
Can the “if” function be used in comparing strings?
What is static memory allocation? Explain
What are the parts of c program?
What are the header files used in c language?
Under what circumstances does a name clash occur?
What is the purpose of sprintf?