// program 2.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int c;
double f,r,k;
//masukan nilai variable
cout<<"masukan suhu derajad celcius : "; cin>>c;
//proses perhitungan
f=9/5*c+32;
r=4/5*c;
k=c+273;
//output
cout<<endl;
cout<<c<<"celcius adalah = " <<f<< " farenheit "<<endl;
cout<<c<<"celcius adalah = " <<r<< " reamur "<<endl;
cout<<c<<"celcius adalah = " <<k<< " kelvin "<<endl;
cout<<endl<<endl;
system("pause");
return 0;
}
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int c;
double f,r,k;
//masukan nilai variable
cout<<"masukan suhu derajad celcius : "; cin>>c;
//proses perhitungan
f=9/5*c+32;
r=4/5*c;
k=c+273;
//output
cout<<endl;
cout<<c<<"celcius adalah = " <<f<< " farenheit "<<endl;
cout<<c<<"celcius adalah = " <<r<< " reamur "<<endl;
cout<<c<<"celcius adalah = " <<k<< " kelvin "<<endl;
cout<<endl<<endl;
system("pause");
return 0;
}
Tidak ada komentar:
Posting Komentar