Answer Posted / mahendiran
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
clrscr();
printf("Enter the number");
scanf("%d", &i);
if(i%2==0)
{
printf("the number is even %d", i);
}
else
{
printf("The number is odd %d", i);
}
getch();
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain why C language is procedural?
Explain what are global variables and explain how do you declare them?
What is the difference between malloc() and calloc() function in c language?
Tell us two differences between new () and malloc ()?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
What is static function in c?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
What is #ifdef ? What is its application?
Why dont c comments nest?
Is c dynamically typed?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Can the curly brackets { } be used to enclose a single line of code?
What is an endless loop?
What is a nested formula?
Mention four important string handling functions in c languages .