skip to main |
skip to sidebar
#include
#include
void main()
{
int awal,akhir,c;
float r,f,
clrscr;
cout<<"Nilai Awal :",cin>>awal;
cout<<"Nilai Akhir :",cin>>akhir;
cout<<"Hasil Konversi Celcius ke Reamur ke fahrenhaite dan ke kelvin"< cout<<"|--------------------------------------------------------------|"< cout<<"| celcius | reamur | fahrenhaite | kelvin |"< cout<<"|--------------------------------------------------------------|"< for(c=awal;c<=akhir;c++)
{
r=(0.4*f-32);
f=(1.8*c+32);
k=(2.25*r+273);
c=(k-273);
cout<<"| "< cout<<"|------------------------------------------------------------------|"< }
getch();
}
0 komentar:
Posting Komentar