Program 9:- Write a program to add one integer and floating type number.
Answers
Answered by
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
1
Answer:
o
Explanation:
bcoz he wasn't a good time with my new favorite song
Similar questions
Math,
2 months ago
Social Sciences,
2 months ago
Computer Science,
4 months ago
Science,
4 months ago
Biology,
9 months ago
Biology,
9 months ago
English,
9 months ago