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

What is the use of volatile?

1083


Explain how do you print only part of a string?

1214


What tq means in chat?

1122


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

2218


Do you have any idea about the use of "auto" keyword?

1080


Why does this code crash?

1091


Is the exit() function same as the return statement? Explain.

1098


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

1164


Explain what are the __date__ and __time__ preprocessor commands?

1117


What is a structural principle?

1161


Why C language is a procedural language?

1024


How can I invoke another program or command and trap its output?

1095


Is c language still used?

977


Why do we use int main?

1096


in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures

1206