Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class SoftUni {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int n = Integer.parseInt(sc.nextLine());
- for(int first = 97;first < 97 + n;first++){
- for(int second = 97;second < 97 + n;second++){
- for(int third = 97;third < 97 + n;third++){
- System.out.println((char)first + "" + (char)second + "" + (char)third);
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment