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

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

Roztwór

Ramón professionell · Tutor durante 6 años
Weryfikacja ekspertów
4.6 (291 Votos)

Respuesta

the code will cause a runtime error