I\'m trying to write a code that has a lot of comparison
Write a program in “QUANT.C” which “quantifies” numbers. Read an integer “x” and test it, pro
Use:
switch (option(a)) { case (0): ... case (1): ... case (2): ... case (n): ...
Where the option() function is simply a function with if else.
option()
if else
It lets you keep the clean look of a switch and the logic part is elsewhere.