Created
September 5, 2017 07:37
-
-
Save Valindo/e1366ec8c15b9cd9e0a2b80539b5d99c to your computer and use it in GitHub Desktop.
pattern.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Pattern{ | |
public static void main(String args[]){ | |
int count = 0; | |
for(int i = 4;i>=0; i--){ | |
for(int j = 1; j<=i; j++){ | |
System.out.print(count+j); | |
} | |
System.out.println(""); | |
count++; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment