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

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

1551


What is Landscape in Sap BW?

1668


what is the differance between a technology and an engineering ?

1605


i want to know details about SBI bank exam and date when to apply and what is the eligibility and the model papers related to it and various post available for Engineering in Information Technology.

1532


What is meant by relay & co-ordination at substation engineering ?

1823






Please send me Sample papers National Informatics Centre (NIC) Programmer. I am giving this paper first time..so if any one have previous question papers send to manoj200.yadav@gmail.com. thnx in advance

1445


how the aeroplane protected from the lightening?

1680


why we use conio.h in c programming?

1679


can you please tell me your understanding in database,what is it

1534


real time examples for basic concepts in oop

1201


what is a structure in c language?

1363


Define configuration and calibration and explain with an example

1556


int main() { int d = 10; int m = 2; int y = 3603; int c = 0; int val; val = ( d + m + y + (y/4) + c) % 7; cout << val; return 0; }

1183


Write a Java program that takes an integer from the user and extracts and displays each digit of the integer in English. So, if the user types in 932, the program will display nine three two. [Use SimpleInput class]

1681


I am going to appear for ISRO written test on 26 th april 2009 .So kindly forward me sample previous question paper for ISRO for BE Computer Science . My mail id : jothychristiya@gmail.com

2109