Menghitung Suhu


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

void main()
{
 float C,F;
 int tombol;
 ulangi:
 clrscr();
 cout<<"Masukan suhu dalam Celcius =";
 cin>>C;
 F=1.8*C+32;
 cout<<"Suhu dalam fahrenheit ="<<F;
 cout<<endl;
 cout<<"Apakah mau mengulangi lagi ? [Y/T] :";
 tombol=getche();
 if(tombol=='Y'||tombol=='y')
 goto ulangi;
 cout<<endl;
 cout<<endl<<endl;
       cout<<"selesai";
 getch();
}

Comments

Popular posts from this blog

Animasi Lucu C++

Sistem Sensor dan Robotika

DDL Part II