biggest of two no's with out using if condition statement
Answer Posted / abin m devasia,biju k m
#include<iostream.h>
void main()
{
int a,b,c;
cin>>a>>b;
c=abs(a-b);
c=(a+b+c)/2;
cout<<"Big is"<<c;
}
| Is This Answer Correct ? | 18 Yes | 1 No |
Post New Answer View All Answers
Tell us something about keyword 'auto'.
Can include files be nested?
Is it fine to write void main () or main () in c?
Explain what is a pragma?
What is the difference between call by value and call by reference in c?
What is hungarian notation? Is it worthwhile?
Why is #define used?
Explain high-order and low-order bytes.
Describe the steps to insert data into a singly linked list.
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
Are the outer parentheses in return statements really optional?
What is a sequential access file?
Can you subtract pointers from each other? Why would you?
How to delete a node from linked list w/o using collectons?
What does main () mean in c?