added new task

This commit is contained in:
ada-dmitry
2023-11-16 12:03:31 +03:00
parent 10b256c812
commit 1bbd6527b8
9 changed files with 95 additions and 4 deletions
+10 -1
View File
@@ -4,7 +4,16 @@ float fahr(int cel)
{
float res;
res = cel * 9 / 5 + 32;
res = (float)cel * 9 / 5 + 32;
return res;
}
float celsius(int fahr)
{
float res;
res = ((float)fahr - 32) * 5 / 9;
return res;
}