biggest of two no's with out using if condition statement
Answer Posted / deepshree sinha
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,m;
printf('enter any two numbers");
scanf("%d %d",&a,&b);
m=(a>b)?a:b;
printf("m=%d",m);
getch();
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the parts of c program?
What's the right way to use errno?
How many parameters should a function have?
What are the advantages of c language?
Difference between macros and inline functions? Can a function be forced as inline?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
What is the difference between the = symbol and == symbol?
Explain can you assign a different address to an array tag?
How do we print only part of a string in c?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
What is d scanf?
What are data structures in c and how to use them?
How do you define a string?
What is external variable in c?