Computer Science, asked by prasanti268pd76ie, 1 year ago

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 sheetal5678
1
I think the answer is if ( 887)
Similar questions