Computer Science, asked by gokul562, 4 months ago

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 piyush20548
2

Answer:

I can't understand your question

Similar questions