write a c program to find biggest of 3 number without
relational operator?
Answer Posted / zishan ahmad
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("enter the values of a,b and 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 gratest of %d %d %d",a,b,c);
getch();
}
| Is This Answer Correct ? | 1 Yes | 15 No |
Post New Answer View All Answers
Write a C program to count the number of email on text
main() { printf("hello"); fork(); }
What are # preprocessor operator in c?
How can variables be characterized?
Is fortran still used in 2018?
What is difference between && and & in c?
Is javascript written in c?
code for replace tabs with equivalent number of blanks
What is #include stdlib h?
Differentiate between a for loop and a while loop? What are it uses?
Explain what is meant by 'bit masking'?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What is the advantage of a random access file?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }