Beruflich Dokumente
Kultur Dokumente
Lab Goal : This lab was designed to teach you how to use for loops and how to make pretty shapes.
Lab Description : Output a word in a fancy triangle. Use substring to print out smaller sections of the
word.
Sample Data :
hippo Files Needed ::
abcd TriangleOne.java
it TriangleOneRunner.java
a
chicken
Sample Output :
hippo
hipp algorithm help
hip
hi
h for loop i = length-1 down to 0
println substrings
abcd
abc
ab
a
it
i
chicken
chicke
chick
chic
chi
ch
c