You are on page 1of 1

#include <iostream.h> #include <conio.

h> float CM2HM(float CM); void main() { float tCM, tHM; cout<<"Tinggi Badan (CM) = "; cin>>tCM; tHM=CM2HM(tCM); cout<<"Tinggi Badan dalam hm (HM) = "<<tHM<<"\n"; getch(); } float CM2HM(float CM) { float HM; HM=0.0001*CM; return HM; }

You might also like