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
How can you find the exact size of a data type in c?
What is the return type of sizeof?
What is the -> in c?
Why do we use header files in c?
What is void c?
What will the preprocessor do for a program?
What is the purpose of type declarations?
What is I ++ in c programming?
Explain what is the benefit of using an enum rather than a #define constant?
Can we initialize extern variable in c?
What are the restrictions of a modulus operator?
what is the structure pointer?
Who is the founder of c language?
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)
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures