The included code stub will read an integer,
n, from STDIN.
Without using any string methods, try to print the following:
Note that “
...” represents the consecutive values in between.
n = 5
Print the string
Input Format :
The first line contains an integer
1 <= n <= 150
Output Format :
Print the list of integers from
n as a string, without spaces.
Sample Input 0 :
Sample Output 0 :
if __name__ == '__main__': n = int(input()) for i in range(n): print(i + 1 , end = "")
57 total views, 9 views today
the above hole problem statement is given by hackerrank.com but the solution is generated by the SLTECHACADEMY authority if any of the query regarding this post or website fill the following contact form thank you.