write a program greater then three numbers without if,
if...else,while,do..while,for,switch statement.

Answers were Sorted based on User's Feedback



write a program greater then three numbers without if, if...else,while,do..while,for,switch statem..

Answer / mani kandan.s

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c,printf("Enter the a,b,c values"));
a>b&&a>c?printf("A is big"):b>c?printf("B is big"):printf
("C is big");
getch();
}

Is This Answer Correct ?    11 Yes 2 No

write a program greater then three numbers without if, if...else,while,do..while,for,switch statem..

Answer / devinder singh

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("\n Enter the 1st no. ");
scanf("%d",&a);
printf("\n Enter the 2nd no. ");
scanf("%d",&b);
printf("\n Enter the 3rd no. ");
scanf("%d",&c);
if(a>b)
printf("\n A is greater ");
if(b>c)
printf("\n B is greater ");
if(c>a)
printf("\n C is greater ");
getch();
}

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More Engineering AllOther Interview Questions

difference between multi relational OLAP & multidimensional OLAP

1 Answers  


how to hack email id & passward

0 Answers  


What is a decade?

2 Answers  


My system suddenly get off,when i try to power on then it does not work but when i open it and clean RAM and insert it again, it power on.but after some day same problem? please give the answer (i have also changed RAM it's new.)

0 Answers  


why is it unable to download call letter of cusat 2008?

0 Answers  






What is the basic difference between injection speed and injection pressure in an injection molding machine?

0 Answers  


how much lighting lux need for a common walking area at night time

0 Answers  


Explain your experience in Lean Manufacturing and Six Sigma methods?

0 Answers  


what is JAR file,JNI,JFC??

0 Answers   CTS, TCS,


. Give the C language equivalents of the following a)Function returning an int pointer b)Function pointer returning an int pointer c)Function pointer returning an array of integers d)Array of function pointer returning an array of integers

0 Answers   Geometric Software,


write a programe to print this string in reverse order and find out how many times letter c is repeated? string = { c was desined by dennis ritchie}. also find out the lenth of the string.

0 Answers  


where is the first engeenering college of Asia

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4452)
  • Electrical Engineering Interview Questions Electrical Engineering (16636)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)