Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Task20 {
- public static void main(String[] args) {
- for(int i = 1; i <= 10; i++) {
- for(int firstPart = i; firstPart <= 9; firstPart++) {
- System.out.print(firstPart);
- }
- for(int secondPart = 0; secondPart <= i - 1; secondPart++) {
- System.out.print(secondPart);
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement