Created
September 13, 2016 15:41
-
-
Save xyos/b91c0eb08494832ae557adeadc3a87b8 to your computer and use it in GitHub Desktop.
Revisions
-
xyos created this gist
Sep 13, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ # python3 suma_cuadrados.py # Nombre del archivo:test1.txt # 13 with open(input("Nombre del archivo:"), 'r') as archivo: num1 = int(archivo.readline().strip()) num2 = int(archivo.readline().strip()) print(num1*num1+num2*num2) This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ 2 3