2 points
Convert the following if condition in the program segment to the
equivalent ternary statement using conditional operator
#include
main()
{
int a = 10, b = 20, ans;
if (a == 10)
{
if (b == 20)
ans = 3;
else
ans = 5;
}
else
ans = 0;
printf ("%d\n", ans);
}
Your answer
Answers
Answered by
2
Answer:
I can't understand your question
Similar questions
Math,
1 month ago
Accountancy,
1 month ago
Math,
1 month ago
Math,
3 months ago
Science,
9 months ago