Computer Science, asked by swathivreddy1234, 8 months ago

Kindly predict the output. Consider the x value as 2.
1 #include<iostream>
2 int main()
3 {
4.
int x;
5
6
7
std::cin>>X;
switch(x)
{
case 0:std::cout<<"The number is zero";
break;
default:
8
9
10
11
int y:
12
13
14
15
y=x%2;
switch(y)
{
case 0:std::cout<<"Even number";
break;
case 1:std::cout<<"odd number";
break;
}
16
18
19
20
}
}
}​

Answers

Answered by sameer112233
0

Answer:

poor coding........,........

Similar questions