Skip to content

Instantly share code, notes, and snippets.

@ChiragDhussa
Created September 11, 2017 19:57
Show Gist options
  • Save ChiragDhussa/d958f4e363e0d297824032d7c85308da to your computer and use it in GitHub Desktop.
Save ChiragDhussa/d958f4e363e0d297824032d7c85308da to your computer and use it in GitHub Desktop.
public class Patterns {
public static void main(String[] args) {
for(int i=1;i<=7;i++) {
for(int j=7;j>=i;j--) {
System.out.print(j+" ");
}
System.out.println();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment