Sfoglia il codice sorgente

Добавить '2.6 ру'

u25-29samoshkina 1 settimana fa
parent
commit
2789b96178
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      2.6 ру

+ 5 - 0
2.6 ру

@@ -0,0 +1,5 @@
+import math
+R = 6350
+h = float(input("Введите высоту над Землей (в км): "))
+d = math.sqrt((R + h)**2 - R**2)
+print(f"Расстояние до линии горизонта: {d:.2f} км")