+ 2
what would be the output of this code if the user entered 5 and 4 as input? width = input() height=input() area = int(width) int
what would be the output of this code if the user entered 5 and 4 as input? width = input() height=input() area = int(width) int(height) print(area//9)
6 Respostas
+ 1
syntaxError......because you are not multiplying int(width) and int(height)
when you multiply it you will get
output = 2
+ 1
What would be the output of this code, if the user entered 5 and 4 as input?
width = input()
height = input()
area = int(width) * int(height)
print(area//9)
0
output 20//9 = 2
0
Enter 2
0
width=input(5)
height=input(4)
area=int(width)*int (height)
print (area)
- 2
Please use relevant and proper tags
https://code.sololearn.com/W3uiji9X28C1/?ref=app