write a program that reads two numbers and prints the larger.write this program using conditional operator
Answers
Answered by
1
printf("\n Enter Second Number :" ); scanf("%d",& b); (a > b)? (larger = a) : (larger = b); printf("\n largest of %d and %d is %d", a, b, larger);
Answered by
2
Answer:
printf("\n Enter Second Number :" ); scanf("%d",& b); (a > b)? (larger = a) : (larger = b); printf("\n largest of %d and %d is %d", a, b, larger);
Similar questions
Math,
23 hours ago
English,
23 hours ago
Math,
23 hours ago
Accountancy,
1 day ago
Environmental Sciences,
1 day ago
English,
8 months ago
Biology,
8 months ago