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

Define the scope of static variables.

878


Why c language?

873


Explain what is the most efficient way to store flag values?

987


How do you define a function?

821


What are the string functions? List some string functions available in c.

835


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

906


Explain how do you print an address?

938


What are the 3 types of structures?

817


The __________ attribute is used to announce variables based on definitions of columns in a table?

996


what is bit rate & baud rate? plz give wave forms

1760


Are c and c++ the same?

846


What are the different types of C instructions?

1045


What is the default value of local and global variables in c?

812


Write a program to print all permutations of a given string.

969


Explain what is the difference between the expression '++a' and 'a++'?

918