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

I want old SBI question papers plzzzzzzzzz

0 Answers  


what is the heat insulation material is adaptable for a flue gas duct that carries waste heat from brick kiln to brick drier and what temperature is required to maintain at the tunnel to dry adobe bricks adequately

0 Answers  


What is the actual procedure of charging synthetic oil if the machine is under positive refrigerant pressure.

0 Answers  


Write a regular expression for "Capgemini Services Pvt.Ltd"

0 Answers   Cap Gemini,


HI frds,,,am final yr IT student.. i secured 81% in x 55% in xii 87% in Btech upto last sem (no standing arrears..) i dt kw clearly abt MNC eligibility criteria.. i heard tat TCS hired 1y abv 60% 1y..so pls help me.. wic cmpnys r anouncd 55% may eligibl in 2011??? pls rly me clearly and sugst som of d compny names...

1 Answers  






what are the advantages as disadvantages of the V-model?

0 Answers  


performance test required for a automatic bank teller?

0 Answers  


Write a program in ā€˜Cā€™ language that will perform the following operation on static stack. 1. push 2. pop 3. Display 4. Exit Create separate functions for each operation. The push() should accept one argument of structure type and will not return any thing. The pop() function will not receive any argument & return structure type value. The stack & top must be declare as external variable. Each element of stack will contain the following information Roll No, Std Name, Course. Use do-while loop & switch case for generating the above menu. The format of the output should is given below: S.No. Roll No. Student Name Course 1 cse01 Anil Singh B.Tech

0 Answers  


how to use photoshop and some related websites?

0 Answers  


DIRECTIONS for questions 8 and 9: Refer to the data below and answer the questions that follow. There are seven chapters in a mathematics book - A, B, C, D, E, F, and G. The instructor has to follow certain rules while teaching them. i. E cannot be taught before B and C. ii. D should be taught before C and G. iii. B cannot be taught before G. iv. F cannot be taught before C, D, and G. v. A should be taught before B is taught and the two should not be taught consecutively. Q8. If only four chapters are taught, which of the following has to be necessarily false? a) The instructor can get away without teaching F. b) The instructor can avoid teaching E. c) The instructor can avoid teaching C. d) The instructor can avoid teaching G. Q9. If only four chapters are to be taught, which of the following is necessarily true? a) A has to be taught. b) D has to be taught. c) B has to be taught. d) C has to be taught. Q8. If only four chapters are taught, which of the following has to be necessarily false? a) The instructor can get away without teaching F. b) The instructor can avoid teaching E. c) The instructor can avoid teaching C. d) The instructor can avoid teaching G. Q9. If only four chapters are to be taught, which of the following is necessarily true? a) A has to be taught. b) D has to be taught. c) B has to be taught. d) C has to be taught.

1 Answers   Crisil,


Differences between Java and C++? which is faster?

0 Answers   Impetus,


what is Pick map and what is the use of it? I want to configure a MVG applet on a filed in opportunity form applet. and when i select fields from MVG , it should reflect on the form applet(means there should be changes on fields in MVG according to Field select from MVG appler). Is this possible (with MVG or Picklist)?

0 Answers  


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