Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Cap
- {
- static Scanner reader = new Scanner(System.in);
- public static void main(String[] args)
- {
- int cap10, cap100, cap1000;
- System.out.println("Enter numner of cap of the value 10");
- cap10 = reader.nextInt();
- System.out.println("Enter numner of cap of the value 100");
- cap100 = reader.nextInt();
- System.out.println("Enter numner of cap of the value 1000");
- cap1000 = reader.nextInt();
- System.out.println("your total points are: "+((cap10*10)+(cap100*100)+(cap1000*1000)));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement