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 would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

670


Is it valid to address one element beyond the end of an array?

668


How can you invoke another program from within a C program?

609


What is the use of gets and puts?

596


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1489






What is function prototype in c language?

606


What are formal parameters?

652


What is zero based addressing?

705


Where static variables are stored in c?

581


Disadvantages of C language.

649


Is it possible to execute code even after the program exits the main() function?

805


What is #include cctype?

574


What is a function simple definition?

608


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.

711


Can a variable be both const and volatile?

667