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...

Program to find larger of the two numbers without using if-else,while,for,switch

Answer Posted / vara

#include<stdio.h>
void main()
{
int a,b;
printf("enter a and b values");
scanf("%d%d",&a,&b);
a>b?printf("%d",a):printf("%d",b);
}

Is This Answer Correct ?    89 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are variables c?

1055


Why is it that not all header files are declared in every C program?

1225


What is a structure and why it is used?

1229


any "C" function by default returns an a) int value b) float value c) char value d) a & b

1087


What is a pointer variable in c language?

1106


Explain how do you list a file’s date and time?

1041


What is character set?

1171


Why is event driven programming or procedural programming, better within specific scenario?

2435


How are pointers declared in c?

1062


What are the salient features of c languages?

1101


How can I get random integers in a certain range?

1067


In which header file is the null macro defined?

1346


What is pivot in c?

1030


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

2529


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1170