After this line: scanf("%d", &celcius); Add this line: menghitungCelcius(celcius, reamur, fahrenheit, kelvin);
The names you pass inside the parentheses should match the names of your local variables. At this point, it is only a coincidence that the names inside your function are the same as on the call site.
But if you want to use these parameters as out parameters, you should learn to deal with pointers: how to define them, how to pass them to the function, how to modify the data they point to.
Обсуждают сегодня