Pagina de inicio
/
Tecnología
/
What is the output of the following snippet if the user enters two lines containing square and 4 respectively? x=int(input()) y=int(input()) x=x/y y=y/x print (y) 8.0 the code will cause a runtime error 4.0 2.0

Problemas

What is the output of the following snippet if the user enters two lines containing square  and 4
respectively?
x=int(input())
y=int(input())
x=x/y
y=y/x
print (y)
8.0
the code will cause a runtime error
4.0
2.0

What is the output of the following snippet if the user enters two lines containing square and 4 respectively? x=int(input()) y=int(input()) x=x/y y=y/x print (y) 8.0 the code will cause a runtime error 4.0 2.0

Solución

avatar
Ramónprofessionell · Tutor durante 6 años
expert verifiedVerificación de expertos
4.6 (291 votos)

Responder

the code will cause a runtime error
Haz clic para calificar: