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 pri request of binary search

1365


anybody, Please send me the NIC(scientific officer/programmer) model questions papers to this mail id:imtiyazahamed14@gmail.com

1529


Iam preparing for Visakhapatnam Management Trainee 2009 entrance exam.. If anybody have Visakhapatnam Management Trainee Interview questions Pls forward to my mail id srikanth.avanthi@gmail.com .. It is kindly request..

1514


please answer the following question: A table contains the monthly sales data for the 12 months of a year and for the 4 sales zones where each zone has 8 districts.The table is defined in WORKING-STORAGE SECTION.What is the size of the defined table in number of bytes? write statements to calculate the total sales for each month.

1589


can u tell me placement peoceduers and placemnt format of hpcl.

1554






What would you like to discuss? Your work-ex or Your Engineering?

692


could i know the selection pattern at hpcl, am an undergradute in chemical technology, but my sujects or course do not figure out antwhere on the lists.

1586


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

1662


What is histogram? why and how it is used?

1575


Explain different parts of an instruction. What does the addressing mode bit specifies?

4151


What is the aim of Value Engineering?

807


Write a function to print all the combinations of a string both uppercase and lowercase without altering the position of each letter.

1975


Please help to write testcase for ECG machine

1538


what are differences between composition and inheritance in c

1148


How does Earthquake-proofing work?

716