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

find largest of 3 no

Answer Posted / subrat

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,max;
printf("enter any three numbers");
scanf("%d %d %d",&a,&b,&c);
max=a;
if(b>max)
max=b;
if (c>max)
max=c;
printf("largest of %d %d %d is %d", a,b,c,max);
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why & is used in c?

1197


What is wrong in this statement?

1156


When should volatile modifier be used?

1021


What are shell structures used for?

1056


How can I get random integers in a certain range?

1071


Explain the binary height balanced tree?

1195


Explain 'bus error'?

1102


Can we increase size of array in c?

972


What is strcmp in c?

1133


How to declare pointer variables?

1250


Difference between pass by reference and pass by value?

1166


What is volatile variable in c?

1099


What is the Purpose of 'extern' keyword in a function declaration?

1084


Why pointers are used in c?

1018


Why should I prototype a function?

1206