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>

main()
{
//clrscr();
int a;
printf("\nenter the no\n");
scanf("%d",&a);
evenNum(&a);

}
evenNum(int *i)
{
if(*i <0)
{
printf("\nEnter correct number :\n");
}
else if(*i%2==0)
{
printf("no is even");
}
else
{
printf("odd no");
}
getch();
main();
}

Is This Answer Correct ?    6 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need volatile in c?

1229


What is putchar() function?

1219


In which header file is the null macro defined?

1400


What does printf does?

1319


What is the meaning of ?

1082


can we implement multi-threads in c.

1177


When should the volatile modifier be used?

1233


What is the difference between the = symbol and == symbol?

1170


find out largest elemant of diagonalmatrix

2323


Is int a keyword in c?

1035


Why c is called top down?

1216


Can a variable be both const and volatile?

1190


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

1965


What is volatile variable in c with example?

1089


Explain what is the heap?

1102