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

#include<stdio.h>
//#include<conio.h>

int main()
{
//clrscr();
int *a;
printf("\nenter the no\n");
scanf("%d",&a);
if(*a <0)
{
printf("\nEnter correct number :\n");
}
else if(*a%2==0)
{
printf("no is even");
}
else
{
printf("odd no");
}
getch();
main();
}

Is This Answer Correct ?    15 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c is a low level language?

1134


What will be your course of action for a push operation?

1110


What is the purpose of the preprocessor directive error?

1266


What is the c value paradox and how is it explained?

1053


What is use of bit field?

1291


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

1234


Can the curly brackets { } be used to enclose a single line of code?

1169


What is dynamic dispatch in c++?

1054


Why use int main instead of void main?

1119


What is signed and unsigned?

1056


What is a file descriptor in c?

1127


What is default value of global variable in c?

988


What are predefined functions in c?

1092


What is the difference between printf and scanf in c?

1351


What is a memory leak? How to avoid it?

1338