#include <stdio.h>

void fahrenheit(int c, float f, char *m);

void fahrenheit(int c, float f, char *m) {

  printf("\n%s szamitas", m);
  printf("\nCelsius (C)......: %d", c);
  printf("\nFahrenheit (F)...: %.2f", f);
  return;
}

int main(int argc, char *argv[]) {
char c;
int cf;
float ff;

  printf("\n˚C > ˚F atvaltas\n");

  printf("\nAdj meg egy °C erteket: ");
  scanf("%d", &cf);

  ff = cf*9/5+32;
  fahrenheit(cf, ff, "Eredeti");

  ff = cf*9.0/5+32;
  fahrenheit(cf, ff, "\nIMPLICIT konverzios");

  ff = (float) cf*9/5+32;
  fahrenheit(cf, ff, "\nEXPLICIT konverios");

  return (0);
}

