Hello comp

Hello comp Digi Locker

13/03/2024

print('The sum is %.1f' %(float(input('Enter first number: ')) + float(input('Enter second number: '))))

Comment ans 👇

13/03/2024

# Store input numbers
num1 = input('Enter first number: ')
num2 = input('Enter second number: ')

# Add two numbers
sum = float(num1) + float(num2)

# Display the sum
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))

Comment ans below....

13/03/2024

# This program adds two numbers

num1 = 1.5
num2 = 6.3

# Add two numbers
sum = num1 + num2

# Display the sum
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))

Comment Output below.. -

13/03/2024

# This program prints Hello, world!

print('Hello, world!')

Simple & easy Roadmap
25/01/2024

Simple & easy Roadmap

Address


Website

Alerts

Be the first to know and let us send you an email when Hello comp posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Shortcuts

  • Address
  • Alerts
  • Claim ownership or report listing
  • Want your business to be the top-listed Media Company?

Share