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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the Boundary value analysis and Equlance class partition for select * from emp

1773


what is the difference between oracle 8i vs 9i

1766


3. Tell me about a time when you had too many things to do and you were required to prioritize your tasks.

1567


Hai friends this is Dara s. solanki, i done in B.Sc.(IT) i have an 2.3 years of exp in Manufacturing company in MIS giving support in SAP , 1 year back i did Sap course In MM Module. am trying from the day one to enter into the sap field but i was not.i kindly requesting all, please suggest me how to enter in to the SAP field. Looking for a job . i please help me and having any thing please let me know . i am in bangalore. my mail id is Dara.solanki@gmail.com. 8431455753

1696


How would Nvidia increase the core clock speed anymore?

1658






What is the pressure in co2 cartridge in a DCP 5 kg extinguisher.

2825


please send aptitude test papers for reference with answers

1264


what is the class of generator A b & c

1229


what is b tree

1584


how am i supposed to convert a class program in C++ to Matlab? Do i also need to make classes in matlab too or I can do it without making classes???Can somebody help....

1325


computer is male or female.....???

1448


Explain momentum?

598


write a pgm to accept an array of names & name & check whether the name is present in the array. return the count of occurance. use following array as input; {"Dave","Ann","dev","merry"}

1325


What is VAT Account determination ? and how we can map in SAP ?

1552


i need to alone print a number no text by using if statement .say some idea

1407