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 / 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


Please Help Members By Posting Answers For Below Questions

what do you mean by inline function in C?

1063


What is break statement?

1133


What is this pointer in c plus plus?

1100


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1422


What is a memory leak? How to avoid it?

1357


What is typedef?

1438


What is pass by reference in functions?

855


What is the explanation for the dangling pointer in c?

1123


Explain what is the benefit of using an enum rather than a #define constant?

1229


Write a Program to accept different goods with the number, price and date of purchase and display them

6243


What is string constants?

1157


What is call by reference in functions?

1464


What are the basic data types associated with c?

1280


How to declare pointer variables?

1252


Explain main function in c?

1090