Advertisement
Guest User

Untitled

a guest
Nov 25th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public class Task20 {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. for(int i = 1; i <= 10; i++) {
  6. for(int firstPart = i; firstPart <= 9; firstPart++) {
  7. System.out.print(firstPart);
  8. }
  9.  
  10. for(int secondPart = 0; secondPart <= i - 1; secondPart++) {
  11. System.out.print(secondPart);
  12. }
  13. System.out.println();
  14. }
  15.  
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement