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 to find given number is even or odd without
using any control statement.

Answer Posted / saneemask

main()
{

{
char a[][5]= {"Even","Odd"};
int n;
printf("Enter any no.: ");
scanf("%d",&n);
printf("%s",a[n%2]);
getch();
}
{

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between null pointer and void pointer.

1130


Differentiate between full, complete & perfect binary trees.

1167


What is the use of pragma in embedded c?

1098


What is the advantage of an array over individual variables?

1293


Differentiate Source Codes from Object Codes

1657


Why do we use int main instead of void main in c?

1194


Is it cc or c in a letter?

1077


What is methods in c?

1142


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1127


What does the function toupper() do?

1191


Explain what is page thrashing?

1160


What is the code in while loop that returns the output of given code?

2068


C program to find all possible outcomes of a dice?

2410


What are pointers?

1158


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

1996