Advertisement
CR7CR7

converter

May 9th, 2022
752
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. class CurrencyConverter {
  2.     int rupee = 63;
  3.     int dirham = 3; // UAE
  4.     int real = 3;  // brazilian    
  5.     int chilean_peso = 595;
  6.     int mexican_peso = 18;      
  7.     int _yen = 107;
  8.     int $australian = 2;  // australian dollar
  9.     int dollar;
  10.     int Rupee = 63;
  11.     void printCurrencies() {
  12.  
  13.    System.out.println("rupee: " + rupee);  
  14.  
  15.    System.out.println("$australian: " + $australian);
  16.     }
  17.  
  18.  
  19.  
  20.  
  21.  
  22.     public static void main(String[] args) {
  23.     CurrencyConverter cc = new CurrencyConverter();
  24.     cc.printCurrencies();
  25.  
  26.        
  27.     }
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement