#include<conio.h>
void main()
{
clrscr();
int c;
double f;
cout<<"--------------------------------"<<endl;
cout<<"celcius fahrenheit"<<endl;
cout<<"--------------------------------"<<endl;
c=1;
do{
f=1.8 * c + 32;
cout<<"celcius : "<<c<<" fahrenheit : "<<f<<endl;
c++;
}
while(c<=10);
cout<<"-------------------------------"<<endl;
getch();
}
Hasilnya :
0 comments:
Post a Comment