Answer Posted / pratikjis@yahoo.com
#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 ? | 36 Yes | 19 No |
Post New Answer View All Answers
What does stand for?
Explain what does it mean when a pointer is used in an if statement?
Explain what are run-time errors?
Explain which function in c can be used to append a string to another string?
How do you determine a file’s attributes?
What is the significance of scope resolution operator?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
How can I get back to the interactive keyboard if stdin is redirected?
What are enumerated types?
What is #line in c?
How to establish connection with oracle database software from c language?
What are file streams?
Why is not a pointer null after calling free?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
What are types of preprocessor in c?