Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class change {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- System.out.print("Enter the amount: ");
- int a = sc.nextInt();
- System.out.println("Enter a price of product");
- int b = sc.nextInt();
- int c = a - b;
- System.out.println("The rest: " + c );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement