derajat suhu CELCIUS yang akan dikonversi: ");
scanf("%d", &celcius);
reamur,kelvin = menghitungCelcius(celcius,reamur,kelvin);
printf("KONFERSI suhu: \nReamur: %d \nKelvin: %d",reamur,kelvin);
}
int menghitungCelcius(int celcius,int reamur,int kelvin){
reamur = celcius*4/5;
kelvin = celcius + 273;
void();
}
i have problem here,the result of reamur is eror,do you know how to call 2 function ?
Remember what I said about the comma operator. You can't use it the way you are trying to because it returns the last expression in the list. Also, you are not returning anything from your function. I wish I had the time to teach you to understand these things :(
why people are still using scanf?! it's scarry
Обсуждают сегодня