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

which are the books available in, India for STONE COLUMNS/GRANULAR PILES?

1332


how to create user name stape by stape in cisco router {with command}

2280


if we give you the job AS A PETROLEUM ENGINEER WHAT WILL YOU DO(that is extraordinary) for our company

2863


What is RAC?(Real Application Cluster).Explain in Detail.

2071


hi,i just want to know the best institute to learn oracle in bangalore because i am doing my BE there?

1417






how to write regression test case?what is the difference between Client server & web based Testing? can we able to do UI Testing in web based Testing

1412


i m doing my 3rd yr with only 6 month left to complete it..within this 6 months which is the best nd useful oracle certification program should i do??pls help me out!!

1245


How do aeroplanes fly? Why can some fly up-side down?

606


hi... i just want to know that how could join the AAI with an B.E back ground??? please help me out.

1578


Explain the following program segment. f(){ int *b; *b=2; }

1933


My gre score is 283 and ielts is 5.5, will i get i20 for this score

1045


I am pavani pursuing 4th B.Tech final semester i want to write the Group 2 Examination , Eligibility of that exam is all degree holders but to hold my Degree 3months are more. but the exam held on 3rd July 2012. i would be complete my B.Tech when exam to be held. so am i eligible to Group2 exam or not , please clarify my doubt.

1425


System Not Getting Shut down Through Software Auttomatically It Will Restart wat is the Problem?

1494


An inversion is an array of numbers is any pair (i,j) such that iA[j]. What is the average number of inversions in an array of n distinct numbers? plz GIVE ME SOLUTION

1439


WHAT HAPPEN WHEN ANY SPINDLE RUN OVER 10 MM HEIGHT ABOVE BOLSTAR IN RING SPINNING FRAME

1348