|
@ -1,5 +1,9 @@ |
|
|
#include <stdio.h> |
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
|
|
|
|
float CzuF(float tempC){ |
|
|
|
|
|
return (tempC * 9/5) + 32; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
int run_TemperaturRechner(){ |
|
|
int run_TemperaturRechner(){ |
|
|
float var1; |
|
|
float var1; |
|
|
int var3; |
|
|
int var3; |
|
@ -12,8 +16,8 @@ int run_TemperaturRechner(){ |
|
|
printf("\nGeben Sie die Temperatur ein: "); |
|
|
printf("\nGeben Sie die Temperatur ein: "); |
|
|
scanf("%f", &var1); |
|
|
scanf("%f", &var1); |
|
|
|
|
|
|
|
|
printf("\nErgebnis: %.2f\n", (var1 * 9/5) +32); |
|
|
|
|
|
|
|
|
printf("\nErgebnis: %.2f\n", CzuF(var1)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
|
|
|
|
|
|
} |