Rewrite the given codes as specified
Using switch..case statement if(y==1947)
d=15.0/100; else if(y==1985)
else d=2.0/100
Answers
Answered by
1
Answer:
switch(y) {
case(1947) :
d=15.0/100;
break;
case(1985) :
break;
default:
d=2.0/100;
}
Similar questions
Accountancy,
2 months ago
English,
2 months ago
Science,
2 months ago
Hindi,
5 months ago
Environmental Sciences,
5 months ago
English,
10 months ago
English,
10 months ago
Math,
10 months ago