mirror of
https://github.com/ada-dmitry/TMP_C712.git
synced 2026-09-24 09:10:16 +00:00
19 lines
211 B
C
19 lines
211 B
C
#include <stdio.h>
|
|
|
|
float fahr(int cel)
|
|
{
|
|
float res;
|
|
|
|
res = (float)cel * 9 / 5 + 32;
|
|
|
|
return res;
|
|
}
|
|
|
|
float celsius(int fahr)
|
|
{
|
|
float res;
|
|
|
|
res = ((float)fahr - 32) * 5 / 9;
|
|
|
|
return res;
|
|
} |