fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
Success #stdin #stdout 0.01s 5292KB
stdin
# Program do konwersji temperatury
# Pobieranie temperatury w stopniach Celsjusza od użytkownika
C = float(input("Podaj temperaturę w stopniach Celsjusza: "))

# Obliczanie temperatury w Kelwinach
K = C + 273

# Obliczanie temperatury w Fahrenheitach
F = (C * 9/5) + 32

# Wyświetlenie wyników
print(f"Temperatura w Kelwinach: {K} K")
print(f"Temperatura w Fahrenheitach: {F} °F")
stdout
Standard output is empty