for(int i = 0; i < 10; i++)
{
for(int j = 0; j <= i; j++)
{
System.out.print("8");
}
System.out.print("\n");
}
In connection with what the program displays on the new line a number with one more additional digit 8?
Please explain.
I'm confused in this thread.
I DONT UNDERSTAND(
Under discussion
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
Corto
11 August 2019, 05:48
0
Meera
25 July 2019, 14:45
The answer was very simple.One extra line kept appearing so remove the = sign and just put 10 in first loop
for(int i=0;i<10;i++)
{ for(int j=0;j<=i;j++)
{ System.out.print("8");
}
System.out.println();
+2
Gabriella LaPlace
29 July 2019, 10:40
Thanks for your help.
0
Guadalupe Gagnon
7 June 2019, 14:39
Can't help you unless you share your code like this:
.
.
![]()

0