Konversi celcius ke Fahrenheit dan Reamur
#include <stdio.h>
main()
{
float celcius, fahrenheit, reamur;
printf(“masukkan nilai celcius ?”);
scanf(“%f”, &celcius);
fahrenheit = celcius * 1.8 + 32;
reamur = celcius * 0.8;
printf(“%f celcius adalah %f fahrenheit dan %f reamur \n”, celcius, fahrenheit, reamur);
getche();
}
oleh:
Daniel Melando
Tingkat 1 tehnik persandian
Belum ada komentar.
