Wednesday, January 16, 2008

Rupees To Dollar

import java.io.*;
class Dollar
{
public static void main(String args[])throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int a,r,d;
System.out.println(" the amount in rupees ");
a = Integer.parseInt(br.readLine());
System.out.println(" the rate of conversion into dollars ");
r = Integer.parseInt(br.readLine());
d = a/r;
System.out.println("the conversion into dollar " +d);
}
}

No comments: