Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package javaapplication2;
- public class JavaApplication2 {
- public static void main(String[] args) {
- char last = 'E', alphabet = 'A';
- for(int i = 1; i <= (last-'A'+1); ++i) {
- for(int j = 1; j <= i; ++j) {
- System.out.print(alphabet + " ");
- }
- ++alphabet;
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement