biggest of two no's with out using if condition statement

Answer Posted / partheeban

void main()
{
float i,j;
int a;
printf("Enter two numbers : ");
scanf("%f%f",&i&j);
a=i/j;
if(a)
printf("%f is greater",i);
else
printf("%f is greater",j);
}

Is This Answer Correct ?    2 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

920


exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

908


How to Throw some light on the splay trees?

822


Define recursion in c.

963


What is mean by data types in c?

774


how to write optimum code to divide a 50 digit number with a 25 digit number??

3024


What is the purpose of void in c?

810


why do some people write if(0 == x) instead of if(x == 0)?

850


How can you be sure that a program follows the ANSI C standard?

1396


Difference between strcpy() and memcpy() function?

879


How do you use a pointer to a function?

864


What is s in c?

852


What is extern c used for?

787


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

864


What is the difference between char array and char pointer?

780