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 / v.karthikeyan

#include <stdio.h>
main()
{
int num;

printf("Enter a number to know the entered number is odd or
even \n");
scanf("%d",&num);

if (num%2==0)
{
printf(" The number is Even");
else
printf(" The number is Odd")
}
getch();
}

Is This Answer Correct ?    88 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the binary height balanced tree?

1137


Tell me what are bitwise shift operators?

1098


How can I find the modification date and time of a file?

1047


What is maximum size of array in c?

1006


What are the different types of control structures in programming?

1095


In a switch statement, what will happen if a break statement is omitted?

1022


What are the types of type qualifiers in c?

1046


What is a lvalue

1045


What is abstract data structure in c?

984


number of times a digit is present in a number

2000


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

1079


Explain the difference between call by value and call by reference in c language?

1067


Can we compile a program without main() function?

1082


What is pragma c?

1073


Are the variables argc and argv are local to main?

1268