Given is the following code fragment :
if(a==0)
s. o. pln("0");
if(a==1)
s. o. pln("1");
if(a==2)
s. o. pln("2");
if(a==3)
s. o. pln("3");
WRITE AN ALTERNATIVE CODE (USING IF)THAT SAVES ON NUMBER OF COMPARISONS.
Answers
Answered by
1
I think the answer is if ( 887)
Similar questions
Computer Science,
7 months ago
English,
7 months ago
Biology,
7 months ago
Math,
1 year ago
Math,
1 year ago