Write a program to print the binary value of the numbers from 1 to N
Topic: Write a program to print the binary value of the numbers from 1 to N
Solution
n = int(input("Enter the value of N: ")) for i in range(1, n+1): print("Binary value of ", i, " is: ", bin(i))
List all Python Programs