Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class tutorial {
- public static void main (String[] guz) {
- int count = 3;
- double price = 2.75;
- char symbol = 'a';
- String name = "Dimo";
- Scanner scanner = new Scanner(System.in);
- count = Integer.parseInt(scanner.nextLine());
- price = Double.parseDouble(scanner.nextLine());
- System.out.printf("%s has bought %d beers for %f", name, count, price);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement