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
MY QUERY IS REGARDING AS/400. I AM FACING A PROBLEM IN UPDATING A PF COZ IT IS GETTING LOCKED SO I USED CHAIN(N) INSTEAD OF ONLY CHAIN.I ALSO TRIED UPDATE(E) ALONG WITH CHAIN(N),ITS NOT GIVING ANY ERROR BUT AT THE SAME TIME NOT UPDATING THE PF
as a fresher what is the format for resume and suggest me some career objectives too........
Why do you want to work here
what is the program to find out the smallest word in a sentence? like if the sentence is : this is my room. then out put will be : is
what is the difference between oracle 8i vs 9i
what is your career objective?
what is the difference between oracle 8i and 9i. if someone could help me out.
can u give me the information about the questions asked by the bally in campus
how convert the spiral model to prototype model ?
Is printf(?%d?,p); valid?
Please tell us about an implementation that you worked on that did not go as planned. What were the challenges you faced and how did you overcome them
in single linked list , each node contains data and address of next node. if middle of list the node is damaged/crashed then how to find where the link is failed and how to get the all the data which is stored after the crashed node?
What are daemon Threads?
how to make resume and what should I include in it?
WHAT IS DIFFERENT BETWEEN YOU AND OTHER APPLICANT TO GIVE YOU THE JOB