Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a program for even numbers?

Answer Posted / nirdesh pal

#include<stdio.h>
#include<conio.h>
void main()
{
int i;
printf("enter the number");
scanf("%d",&i);
if(i%2==0)
{
printf("number is even");
else
printf("number is odd");
}
getch();
}

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program to find the given number is prime or not

4670


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

1030


why do some people write if(0 == x) instead of if(x == 0)?

1019


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

1400


What is a shell structure examples?

1045


the question is that what you have been doing all these periods (one year gap)

2030


Explain the difference between strcpy() and memcpy() function?

957


Is printf a keyword?

1164


Explain the concept and use of type void.

1073


In which language linux is written?

1182


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4632


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1996


What is meant by type casting?

1029


What is spaghetti programming?

1084


What are the standard predefined macros?

1083