Skip to content

Files

Latest commit

e9b6088 · Sep 30, 2022

History

History

print-problem

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 13, 2021
Sep 30, 2022
Oct 13, 2021

author : Senuri Fernando

Task

The included code stub will read an integer, , from STDIN.

Without using any string methods, try to print the following: 123....n

Note that "..." represents the consecutive values in between.

question link

https://www.hackerrank.com/challenges/python-print/problem

Example

n=5 Print the string 12345 .

Input Format

The first line contains an integer n.

Constraints

1<= n <=150

Output Format

Print the list of integers from 1 through n as a string, without spaces.

Sample Input

3

Sample Output

123