July 05, 2013

Java program to convert Rupee To Paisa

Write a Java program to convert Rupee TO Paisa 

Rupee TO Paisa

import java.io.*;
class rtop
    public static void main(String args[])throws IOException
        BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in));
        System.out.println("Enter the rupees to convert: ");
        int rs=Integer.parseInt(stdin.readLine());
        double pa=rs*100;
        System.out.println("The paise is "+pa+" paise");


C:\Program Files\Java\jdk1.5.0\bin>java rtop

Enter the rupees to convert:
The paise is 100.0 paise

No comments:
Write comments