Question
To Convert decimal number to binary number.
Sample TestCaseExpected Output
Enter a decimal number : 3 Equivalent binary number : 0b11
Answer
number=int(input("Enter a Decimal number : "))
print("Equivalent Binary number :",bin(number))
All the news and updates relevant to Engineering. You can also Write a post here
Hello My Name is DP Learn Engineering with Subscribe us to get Notified about New Post
Learn More →
No comments:
Post a Comment