Answer the question
In order to leave comments, you need to log in
How to print AA?
Task:
Write a console application that outputs AA given the N(letter width) parameter . Free space with ' - ' character, filled with ' * '.
Answer the question
In order to leave comments, you need to log in
Judging by the examples, N is not the width of the letter, but the width of the stroke?
The dependence of the number of lines on the stroke width is linear (N+1).
And then it’s a matter of technique, to calculate the positions of the asterisks for each line (the position of the very first asterisk depends linearly on N in the same way)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question