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
What is the right type to use for boolean values in c? Is there a standard type?
What is the difference between ++a and a++?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
What is difference between %d and %i in c?
What is sizeof int?
Are there namespaces in c?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is the difference between variable declaration and variable definition in c?
How was c created?
What is a global variable in c?
What is storage class?
Multiply an Integer Number by 2 Without Using Multiplication Operator
What is the difference between volatile and const volatile?
Can a pointer point to null?
Differentiate between the expression “++a” and “a++”?