From 349b467b111e80442ea7a861d93f92363782dfe0 Mon Sep 17 00:00:00 2001 From: VectorKappa Date: Sun, 9 Oct 2022 22:04:15 +0200 Subject: [PATCH] Dodano stopnie --- sto.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sto.cpp diff --git a/sto.cpp b/sto.cpp new file mode 100644 index 0000000..6482aaf --- /dev/null +++ b/sto.cpp @@ -0,0 +1,13 @@ +#include +#include + +int main () +{ + int fahrenheit; + double celcius; + std::cin >> fahrenheit; + celcius = 5.0 / 9 * (fahrenheit - 32); + std::cout << std::setprecision(2) << std::fixed << celcius; + + return 0; +}