Hello Every one,
I need some help with my code. I need an output that looks something like this
----------------------------------------
_-^-_-^-_-^-_-^-_-^-_-^-_-^-_-^-_-^-_-^-
1122334455667788990011223344556677889900
----------------------------------------
The problem I am having is with the line on top of the numbers of 1, 3,5, 7, 9.
My code has to much of space in between the spike symbols and numbers so it looks like this
----------------------------------------
-^- -^- -^- -^- -^- -^- -^- -^- -^- -^-
_ __ __ __ __ __ __ __ __ _
1122334455667788990011223344556677889900
for (int a =1; a<=40; a++) System.out.print("-"); System.out.println(); for (int b=1; b<=10; b++) System.out.print("-^-"); System.out.println(); for (int c=1; c<=9; c++) System.out.print("_ _"); System.out.println(); for(int r =1;r<=2; r++) { for (int d=1; d<=9; d++) { for(int i=1; i<=2;i++) System.out.print(d); } System.out.print("00"); }