+ 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)

8th Apr 2022, 12:00 PM
Anupama Lover Dharaneeswar
6 Respostas
+ 1
syntaxError......because you are not multiplying int(width) and int(height) when you multiply it you will get output = 2
8th Apr 2022, 12:05 PM
NonStop CODING
NonStop CODING - avatar
+ 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)
9th Feb 2023, 5:11 PM
shivam chouhan
shivam chouhan - avatar
0
output 20//9 = 2
3rd Nov 2022, 6:25 AM
Mustafa Cagri Altin
Mustafa Cagri Altin - avatar
0
Enter 2
23rd Dec 2022, 5:10 PM
Engr.Ayesha Liaqat
Engr.Ayesha Liaqat - avatar
0
width=input(5) height=input(4) area=int(width)*int (height) print (area)
11th Mar 2023, 8:10 PM
NSED DOMMY NDOMA
NSED DOMMY NDOMA - avatar
- 2
Please use relevant and proper tags https://code.sololearn.com/W3uiji9X28C1/?ref=app
8th Apr 2022, 2:19 PM
Ipang