Computer Science, asked by galaxy19, 4 months ago

Program 9:- Write a program to add one integer and floating type number.

Answers

Answered by 0RPS0
3

print ( ' Enter integer number: ' , end= ' ' )

Num1 = int ( input ( ) )

print ( ' Enter Floating type number: ' , end= ' ' )

Num2 = float ( input ( ) )

print ( ' Number1 = ' , Num1 )

print ( ' Number2 = ' , Num2 )

sum = Num1 + Num2

print ( ' sum = ' , sum )

*Output*

Enter integer number: 2

Enter Floating Number: 2.5

Number1 = 2

Number2 = 2.5

sum = 4.5

*● NOTE:-* Python 3 uses *input ( )* method to read the input from the user.

Python 2 uses *raw_input ( )* method to read the input from the user.

Answered by finnest
1

Answer:

o

Explanation:

bcoz he wasn't a good time with my new favorite song

Similar questions