Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzairmemon1 authored Oct 9, 2022
1 parent 7072d3e commit 3b6925a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Java/printable.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
public class task16 {
public static void main(String[] args) {
System.out.print(1+ "\t|");
for(int i=2; i<=9; i++) {
System.out.print("\t" + i);

}
System.out.println();
System.out.println("----------------------------------------------------------------------------");
for(int i=1; i<=10; i++) {
for(int j=1; j<=9; j++) {

if(j==1){
System.out.print(i*j + "\t" + "|\t");
}

else
System.out.print(i*j + "\t");
}
System.out.println();

}
}
}

0 comments on commit 3b6925a

Please sign in to comment.