mirror of
https://github.com/ada-dmitry/TMP_C712.git
synced 2026-09-25 17:50:19 +00:00
added new task
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user