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

what are basic step involved in embedded system software development?

0 Answers  


what will be the value of c in c=x++ + ++x + ++x +x if c=10?

1 Answers  


c ka base kya hota hai? what is communication?

0 Answers  


Show the forces acting on a ladder

0 Answers  


if u have question papers/sample papers of any of PSUs,plz send me at dinesh.pandey3@gmail.com

0 Answers  






which is best car to buy in india, if the budget is below or equal to 3.5 lakhs?

4 Answers   TCS,


SQL How can make delete and insert in one query

0 Answers  


where is interrupt vector table is located??

1 Answers   Infosys,


What is the weight of a foot square block of bronze.

0 Answers  


can i get some win vista notes

0 Answers  


what is difference between server 2008R1 and 2008 server R2?

0 Answers   NSIT,


if your monitor is not started with your cpu, but start when monitor attach to another cpu then where is the problem?

2 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • 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)