Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
switch(X) { case 1:X=a+b; break ; case 2:X=a-b; break; case 3:X=a*b; break; case 4:X=a/b; break; default:cout<<"invalid option"; } break is used to terminate out after successful operations.
9th Oct 2018, 7:14 PM
Nishanth
Nishanth - avatar