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 programme to find even numbers without using any
conditional statement?

Answer Posted / mathiyazhagan

#include<stdio.h>
main()
{
char res[2][5]={"Even","Odd"};
int n;
printf("Enter a number :");
scanf("%d",&n);
printf("the given no is = %s",res[n%2]);
}

Is This Answer Correct ?    51 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is your stream meaning?

1241


What does calloc stand for?

1167


Who is the founder of c language?

1172


What is boolean in c?

1094


What is c standard library?

1207


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

1125


Explain what is the advantage of a random access file?

1124


What are volatile variables in c?

953


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

2447


Who developed c language and when?

1071


Where are c variables stored in memory?

1073


What is the advantage of a random access file?

1203


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2780


What is a lvalue

1085


write a program to find the given number is prime or not

4770