Z
Z
Zhenia Bel2021-10-23 23:10:14
C++ / C#
Zhenia Bel, 2021-10-23 23:10:14

How to draw such a picture on c?

"Drawing" with symbols. Display the numbers in the following
form:

1
3
22
44
333
555
4444
6666

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Wataru, 2021-10-23
@wataru

Display function - printf(). One character or string that you need to output must be passed there as one parameter in quotes, for example printf("1");.
To make a line feed, you need to print the character "\n". You can add it to the end of the line, for exampleprintf("44\n");

V
voproser45654, 2022-02-24
@voproser45654

#include <stdio.h>

int main()
{
    puts("1\n22\n333\n4444\n55555");
    return 0;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question