Aim:- Write a program to convert rupees to dollar. (60
rupees=1 dollar).
Java Code:-
import java.lang.*;
class pra1
{
public static void main(String args[])
{
int rs,dol;
rs=Integer.parseInt(args[0]);
dol=rs/60;
System.out.println("Dollar= "+dol);
}
}
Output:-
No comments:
Post a Comment