Answer Posted / dwarika
#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
int a;
printf("enter the no");
scanf("%d",&a);
if(a%2==0)
{
printf("no is even");
}
else
{
printf("odd no");
}
getch();
return 0;
}
| Is This Answer Correct ? | 56 Yes | 6 No |
Post New Answer View All Answers
What is use of bit field?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
Which control loop is recommended if you have to execute set of statements for fixed number of times?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
What is a list in c?
What are the disadvantages of c language?
hi, which software companys will take,if d candidate's % is jst 55%?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
What are the 3 types of structures?
Can a local variable be volatile in c?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
Can a variable be both static and volatile in c?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
How can I do graphics in c?
What is a program flowchart?