write a c program to find biggest of 3 number without
relational operator?
Answer Posted / m. priyanga
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter the values a,b,c:");
scanf("%d%d%d",&a,&b,&c);
if((a>b)&&(a>c))
printf("a is greatest of %d %d %d",a,b,c);
else if(b>c)
printf("b is greatest of %d %d %d",a,b,c);
else
printf("c is greatest of %d %d %d",a,b,c);
getch();
}
Output:
Enter the values a,b,c: 4 5 6
c is greatest of 4 5 6
| Is This Answer Correct ? | 2 Yes | 7 No |
Post New Answer View All Answers
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
Write a program to identify if a given binary tree is balanced or not.
What is indirection? How many levels of pointers can you have?
What are called c variables?
What is main function in c?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
Write a program for Overriding.
Explain what is the benefit of using const for declaring constants?
Why can arithmetic operations not be performed on void pointers?
What is the difference between array and pointer?
What are conditional operators in C?
What are nested functions in c?
What is a structure and why it is used?
What does c mean in standard form?
How can you avoid including a header more than once?