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 the size of empty structure in c?

1091


what is bit rate & baud rate? plz give wave forms

1984


Is null equal to 0 in sql?

1158


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

1117


Explain the bubble sort algorithm.

1079


How do you declare a variable that will hold string values?

1184


What is pass by value in c?

1077


Can you write a programmer for FACTORIAL using recursion?

1049


Explain null pointer.

1131


What do you mean by a local block?

1092


Explain About fork()?

1124


Why c is called a mid level programming language?

1084


What are the types of c language?

1040


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2849


Explain what is a pragma?

1058