0% found this document useful (0 votes)
150 views1 page

4.for Loops DecreasingWord Lab Java Aplus

The document describes a lab about using for loops to print out words in a triangular shape by substringing smaller sections of the word on each line from the full word down to a single character.

Uploaded by

Jonathan Zhang
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
150 views1 page

4.for Loops DecreasingWord Lab Java Aplus

The document describes a lab about using for loops to print out words in a triangular shape by substringing smaller sections of the word on each line from the full word down to a single character.

Uploaded by

Jonathan Zhang
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

A+ Computer Science For Loops DECREASING WORD Lab Value - 100

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 [Link]
it [Link]
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

A+ Computer Science for loops - [Link]

You might also like