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

Answers were Sorted based on User's Feedback



find largest of 3 no..

Answer / aravind

#include<stdio.h>
int main()
{
int a,b,c,d;
printf("enter the numbers");
scanf("%d,%d,%d",&a,&b,&c);
if(a>b&&a>c)
printf("a is greater");
if(b>a&&b>c)
printf("b is greater");
else
printf("c is greater");
}

Is This Answer Correct ?    13 Yes 2 No

find largest of 3 no..

Answer / g.ravi teja

#include<stdio.h>
int main()
{
int a,b,c;
printf("enter the numbers");
scanf("%d,%d,%d",&a,&b,&c);
if(a>b&&a>c)
printf("a is greater");
if(b>a&&b>c)
printf("b is greater");
else
printf("c is greater");
}

Is This Answer Correct ?    7 Yes 1 No

find largest of 3 no..

Answer / deepshree sinha

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("enter any three numbers");
scanf("%d %d %d",&a,&b,&c);
if(a>b)
{
if(a>c)
printf("the biggest no.=%d",a);
else
printf("the biggest no.=%d',c);
}
else
{
if(b>c)
printf("the biggest no.=%d",b);
else
printf("the biggest no.=%d",c);
}
getch();
}

Is This Answer Correct ?    4 Yes 0 No

find largest of 3 no..

Answer / 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

find largest of 3 no..

Answer / udayakumarswamy

#include<stdio.h>
main()
{
int a,b,c;
clrscr();
if(a>b&&a>c)
{
printf("a is bigger than b and c");
}
else if(b>c)
{
printf(" b is bigger than a and c");
}
else
{
printf("c is bigger than a and b");
}
getch();
}

Is This Answer Correct ?    5 Yes 2 No

find largest of 3 no..

Answer / 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

find largest of 3 no..

Answer / manish soni bca 3rd year jaipu

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,max;
printf("Enter any 3 no");
scanf("%d %d %d",&a,&b,&c);
max=a>b?(a>c?a:c):(b>c?b:c);
printf("%d",max);
getch();
}

Is This Answer Correct ?    0 Yes 0 No

find largest of 3 no..

Answer / guest

#include<stdio.h>
main()
{
int num1,num2,num3,num4,num5;
clrscr();
printf("Please enter five numbers:");
scanf("%i,%i,%i,%i,%i",&num1,&num2,&num3,&num4,&num5);
if(num1>num2,num3,num4,num5)
{
printf("this number is the largest %i",num1);
}
else if(num2>num1,num3,num4,num5)
{
printf("this number is the largest %i",num2);
}
else if(num3>num2,num4,num5,num1)
{
printf("this number is the largest %i",num3);
}
else if(num4>num1,num2,num3,num5)
{
printf("this is the largest number %i",num4);
}
else if(num5>num1,num2,num3,num4)
{
printf("this is the largest number %i",num5);
}
getch();
}


Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

How would you find a cycle in a linked list?

3 Answers   NSN,


find the output of the following program main() { int x=5, *p; p=&x; printf("%d",++*p); }

10 Answers   Amdocs, TCS,


give an example of type casting by a simple c program

2 Answers   TCS,


What is the difference between memcpy and memmove?

0 Answers  


write a programe to find the factorial of given number using recursion

3 Answers  


Given a string write a program to print all alphabetical characters in the order of their occurance first,followed by the sum of the numeric characters then followed by the special characters in the order of their occurance.

1 Answers   College School Exams Tests, Wipro,


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

0 Answers  


du u know test pattern for robosoft? Plz share

1 Answers   RoboSoft, TATA, Wipro,


Write a C program to read the internal test marks of 25 students in a class and show the number of students who have scored more than 50% in the test. Make necessary assumptions.

1 Answers  


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

0 Answers  


Where is c used?

0 Answers  


What is the diffrent between while and do while statement ?

6 Answers  


Categories