Question: check the following Program has errors or not. if iat is correct would be the outlut of the Progrom? int num = 1 Switch num

check the following Program has errors or not. if iat is correct would be the outlut of the Progrom?
int num =1
Switch num $2
Case 1: nmx=4;
Coutecnumerend ;3
case 2: num **=4;
Coutec num ccendl;
Case 3:
um?=2;
cout c%=2;
cout sum

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!