PROGRAMMING (using Borland CPP)
#include <iostream.h>
#include <conio.h>
int main()
{
loop:
char choosing;
float celsius,fahrenheit;
while(true)
{
cout<<"Select an option #1 , #2 , #3:\n";
cout<<"\n"; cout<<"\n";
cout<<"1. Convert Celsius to Fahrenheit\n";
cout<<"2. Convert Fahrenheit to Celsius\n";
cout<<"3. Exit the Program\n";cout<<"\n";cout<<"\
cout<<"....................\n"
cin >> choosing;
if(choosing == '1')
{
cout<<"#1. Enter the temperature in Celsius: ";
cin>>celsius; cout<<"\n";
fahrenheit = (celsius*9) / 5 + 32;
cout<<"Answer: \n"; cout<<fahrenheit; cout<<"\n";
cout<<"....................\n"
}
if (choosing =='2')
{
cout<<"#2.Enter the temperature in Fahrenheit: ";
cin>>fahrenheit;
cout<<"\n\n";
celsius = (fahrenheit-32)*5/9;
cout<<"Answer: \n"; cout<<celsius; cout<<"\n";
cout<<"....................\n"
{
goto loop;
}
}
if(choosing == '3')
{
cout<<"(: BYEEEEEEEEEEE :) "; cout<<endl;break;
}
}
return 0;
}