Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- float konwersja_temperatury(float a);
- int main(void) {
- float t_celcjusze, temperatura_f;
- printf("Podaj temp [C]: ");
- scanf("%f", &t_celcjusze);
- temperatura_f=konwersja_temperatury(t_celcjusze);
- printf("%.2f[C] = %.2f[F]", t_celcjusze, temperatura_f);
- return 0;
- }
- float konwersja_temperatury(float a)
- {
- return 9*a/5+32;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement