Problem:-
Aditya is fond of ladders. Everyday he goes through pictures of ladders online but unfortunately today he ran out of ladder pictures online. Write a program to print “ladder with N steps”, which he can use to get his daily dose of ladder love.
INPUT:
Input contains integer N, the number of steps in the ladder
Input contains integer N, the number of steps in the ladder
OUTPUT:
Print the ladder with the gap between two side rails being 3 spaces(“ “).
Check the sample output for format of printing the ladder.
CONSTRAINTS:
1<=N<=40
Time Limit:5.0 sec(s) for each input file.
Memory Limit:256 MB
Source Limit:1024 KB
0 Comments