# include <stdio.h>
# include <stdlib.h>
float konversiSuhuCelcius (float celcius,float farenheit);
void main()
{
system("color E");
system("cls");
float celcius,farenheit,rumus;
printf("------------------------------------\n");
printf("Masukkan Nilai Derjat Celcius = ");
scanf("%f",&celcius);
rumus = konversiSuhuCelcius(celcius,farenheit);
printf("\nMaka Hasilnya Adalah = %.2f\n",rumus);
printf("------------------------------------\n");
return 0;
}
float konversiSuhuCelcius(float c,float f)
{
return (1.8*c)+32;
}
Monday, February 13, 2012
7:18 AM
Konversi Celcius Ke farenheit dengan fungsi
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment