def print_num(n):
         if n > 0:
            print_num(n - 1)
            print(n, end = ' ')
      n = int(input())
      print('printed numbers are:')
      print_num(n)
      
      Python language logo

      printing numbers

      0

      0

      avatar
      Mahendra Kumar
      design
      beginner
      logic

      Print numbers in a given range in Python using While Loop

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.