Răspuns:
Explicație:
#include <iostream>
#include <iomanip>
using namespace std;
double n, c, f, k;
char ch;
int main()
{
cin >> n >> ch;
if (ch=='C')
{
c=n;
f=c*9/5+32;
k=c+273.15;
}
if (ch=='F')
{
f=n;
c=5*(f-32)/9;
k=c+273.15;
}
if (ch=='K')
{
k=n;
c=k-273.15;
f=c*9/5+32;
}
cout << fixed << setprecision(2) << c << "\n";
cout << fixed << setprecision(2) << f << "\n";
cout << fixed << setprecision(2) << k;
}