Advertisement
julianlevinton

איסוף פקקים

Oct 26th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Cap
  3. {
  4.     static Scanner reader = new Scanner(System.in);
  5.     public static void main(String[] args)
  6.     {
  7.         int cap10, cap100, cap1000;
  8.         System.out.println("Enter numner of cap of the value 10");
  9.         cap10 = reader.nextInt();
  10.         System.out.println("Enter numner of cap of the value 100");
  11.         cap100 = reader.nextInt();
  12.         System.out.println("Enter numner of cap of the value 1000");
  13.         cap1000 = reader.nextInt();
  14.         System.out.println("your total points are: "+((cap10*10)+(cap100*100)+(cap1000*1000)));
  15.    
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement