P
P
PRAIT2020-11-02 07:19:31
Java
PRAIT, 2020-11-02 07:19:31

How to display letters as figures without knowing cycles?

Reading the book by Yakov Fine - java programming for children of grandparents' parents, I had a little bewilderment.
In the book, the author gives the task on page 39 to draw HELLO with asterisks

5f9f87cf00625838966990.png

. At the same time, there were no cycles in the book yet. Passed only types. If it is possible to draw this creation without cycles, give a hint how to do it? Is it like sout? I will be glad for any hints.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vyacheslav Parkurov, 2020-11-02
@PRAIT

Very simple. You need to connect abstract thinking, estimate the spaces between the asterisks and output 5 lines. If I were a child learning Java, I would take a notebook in a box and figure out which lines to display in it.

A
Alexander Bulgakov, 2020-11-02
@alebul

And what prevents you from typing this in notepad and outputting it to the console?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question