Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DeckOfCards {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- String card = scanner.nextLine();
- int number = Integer.parseInt(card);
- for (int i = 2; i <= number; i++) {
- System.out.printf("%d of spades, %d of clubs, %d of hearts, %d of diamonds", i, i, i, i).println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement