electro-magic

#include <iostream>

using namespace std;
double celsius_to_fahrenheit (double);
int main()
{
double stopnie ;
    setlocale(LC_CTYPE, "Polish");
    cout << "Przelicznik stopni Celsjusza na Fahrenheita"<<endl;
    cout << "Podaj temperaturê w stopniach Celsjusza: " ;
    cin>> stopnie;
    double fahrenheit = celsius_to_fahrenheit (stopnie);
    cout<<stopnie<<" stopnie Celsjusza to "<<fahrenheit<<" stopnie Farhrenheita";
    return 0;
}
double celsius_to_fahrenheit (double sts)
{
return 1.8*sts+32;
}


Dodaj komentarz






Dodaj

© 2013-2024 PRV.pl
Strona została stworzona kreatorem stron w serwisie PRV.pl