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 c program to find largest of three numbers using simple if only for one time.



write a c program to find largest of three numbers using simple if only for one time...

Answer / 1160

#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c,max;
scanf("%d %d %d",&a,&b,&c);
if (a>b && a>c)
{
printf("%d",a);
}
max=(b>c)&&(c>a)?printf("%d",b):printf("%d",c);
return max;
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is c language used for?

0 Answers  


Can I pass constant values to functions which accept structure arguments?

2 Answers  


Why do we use return in c?

0 Answers  


Write a c program to demonstrate character and string constants?

0 Answers  


the maximum value that an integer constant can have is a) -32767 b) 32767 c) 1.701e+38 d) -1.7014e+38

1 Answers  


Write a program to print the prime numbers from 1 to 100?

7 Answers  


How Many Header Files in c?

2 Answers   TCS,


what are the advantage and disadvantage of recursion

5 Answers  


c program to manipulate x=1!+2!+3!+...+n! using recursion

1 Answers   TCS,


Differentiate between the = symbol and == symbol?

0 Answers  


How do you view the path?

0 Answers  


what is difference between overriding and overloading?

1 Answers  


Categories