Computer Science, asked by jagwani4, 5 months ago

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 dishani2k
1

Answer:

switch(y) {

case(1947) :

d=15.0/100;

break;

case(1985) :

break;

default:

d=2.0/100;

}

Similar questions