Skip to content

Instantly share code, notes, and snippets.

@Valindo
Created September 5, 2017 07:37
Show Gist options
  • Save Valindo/e1366ec8c15b9cd9e0a2b80539b5d99c to your computer and use it in GitHub Desktop.
Save Valindo/e1366ec8c15b9cd9e0a2b80539b5d99c to your computer and use it in GitHub Desktop.
pattern.java
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