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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you list files in a directory?

1088


What is non linear data structure in c?

978


What is the significance of c program algorithms?

1102


Explain what are the different data types in c?

1171


What is malloc calloc and realloc in c?

1226


Is null always defined as 0(zero)?

1056


How can I automatically locate a programs configuration files in the same directory as the executable?

1112


Describe the difference between = and == symbols in c programming?

1309


What is array of pointers to string?

1008


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

1219


What tq means in chat?

1074


Differentiate between ordinary variable and pointer in c.

1111


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

1010


What is #include stdio h and #include conio h?

1051


Why do we need arrays in c?

1094