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 / mihir a kamdar

#include<stdio.h>
main()
{
int n1,n2,n3,big;
printf("Enter 3 No.=");
scanf("%d %d %d",&n1,&n2,&n3);

if(a>b)
big=a;
else
big=b;

if(c>big)
big=c;

printf("\n Largest No is=%d",big);

getch();
}



}

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a function and a method in c?

1074


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

1109


What is a ternary operator in c?

1110


What are the different types of objects used in c?

1020


What are the different file extensions involved when programming in C?

1240


Explain what are bus errors, memory faults, and core dumps?

1262


What is page thrashing?

1069


What is the purpose of sprintf() function?

1102


Explain pointers in c programming?

1098


Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

1263


Differentiate between functions getch() and getche().

1035


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

5191


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1182


Is that possible to store 32768 in an int data type variable?

1068


How main function is called in c?

1115