Print a line

Write a procedure

        void print(int s, char c, int n);

to print a line with @s@ spaces followed by @n@ characters @c@. For
instance, these three calls

        print(0, 'X', 3);
        print(1, 'y', 4);
        print(2, 'A', 2);

produce this output:

    XXX
     yyyy
      AA

Observation

You only need to submit the required procedure; your main program will
be ignored.

Problem information

Author: Unknown
Translator: Salvador Roura

Generation: 2026-01-25T12:21:57.743Z

© Jutge.org, 2006–2026.
https://jutge.org
