Using switch case statement in Java create a program to convert rupee into dollar and dollar into rupee according to users choice assume one dollar is equals to Rs.77
Answers
Answered by
5
Answer:
class cash
{
public void input(int n, char c)
{
double s=0;
switch(c)
{
case R: s= n/77;
break;
case D: s= n*77;
break;
}
System.out.print("The value is "+s);
}
}
Similar questions