write a program for odd numbers?

Answer Posted / vivek singh

#include<stdio.h>
#include<conio.h>
void main()
{
int num;
printf("Enter the number:");
scanf("%d",&num);
if(num%2==0)
{
printf("Number is Even");
}
else
{
printf("Number is Odd");
}
getch();
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2272


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

837


Write a C program to count the number of email on text

1421


Where define directive used?

608


What is the right type to use for boolean values in c? Is there a standard type?

567






What is volatile, register definition in C

692


How can I sort a linked list?

636


Why is c called a mid-level programming language?

730


Lists the benefits of c programming language?

599


What are operators in c?

584


Is it possible to have a function as a parameter in another function?

600


What is exit() function?

562


Explain void pointer?

593


How do I send escape sequences to control a terminal or other device?

614


What is the return type of sizeof?

596