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

When should the const modifier be used?

652


What was noalias and what ever happened to it?

590


What does emoji p mean?

595


What do you mean by c what are the main characteristics of c language?

564


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

1425






What does int main () mean?

541


List some of the static data structures in C?

757


Why do we use namespace feature?

577


How do you do dynamic memory allocation in C applications?

626


What is methods in c?

637


Wt are the Buses in C Language

2749


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

1953


Do you know the use of fflush() function?

592


What are the benefits of c language?

641


What are the 5 organizational structures?

565