(You can choose one language from C, C++, or Java)
- Rewrite the following code segment using a multiple-selection statement
if ((k 1) II (k 2)) j = 2 *k - 1;
if ((k 3) || (k == 5))] = 3 * K+ 1;
if (k 4) ) = 4* k-1;
if ((k == 6) || (k == 7) || (k == 8)) j = k - 2;

Q&A Education