102k views
1 vote
What is the output produced from the following statements? (Treat tabs as aligning to every multiple of eight spaces.)

System.out.println("name\tage\theight");
System.out.println("Archie\t17\t5'9\"");
System.out.println("Betty\t17\t5'6\"");
System.out.println("Jughead\t16\t6'");
Expert Answer

User Joan Venge
by
6.3k points

1 Answer

2 votes

Answer:

// this will be the output of the following statement.

name age height

Archie 17 5'9"

Betty 17 5'6"

Jughead 16 6'

Step-by-step explanation:

First print statement will print name, age and height separated by a tab space. Then next print statement print Archie, 17 and 5'9" separated by a tab space in new line.Similarly third print statement will print Betty, 17 and 5'6" and in new line the last print statement will print Jughead,16 and 6' separated by a tab space in the next line.

User Eggon
by
6.2k points