0
0
0xF3N212020-02-15 01:08:57
Algorithms
0xF3N21, 2020-02-15 01:08:57

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

1 answer(s)
A
Anton Ivanov, 2020-02-15
@Fly3110

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 question

Ask a Question

731 491 924 answers to any question