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 what is the general form of a c program?
Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80
Where in memory are my variables stored?
Explain what is a static function?
What is the difference between near, far and huge pointers?
what is the difference between class and unio?
Write a Program to accept different goods with the number, price and date of purchase and display them
show how link list can be used to repersent the following polynomial i) 5x+2
What are different types of pointers?
In which header file is the null macro defined?
What is %g in c?
What is the correct declaration of main?
What are the __date__ and __time__ preprocessor commands?
Explain how do you generate random numbers in c?
Can a variable be both static and volatile in c?