This is simple problems for you guys but for me, im only first year college im studying this. this is my problem.
My code is this:
#include <iostream>
using namespace std;
void main ()
{
float num1, num2, Fa1, Fa2, Ce1, Ce2;
cout<<"Conversion""\n""\n";
cout<<"1.Fahrenheit to Celsius""\n";
cout<<"2.Celsius to Fahrenheiut""\n""\n";
cout<<"Fahrenheit to Celsius""\n""\n";
cout<<"Enter Fahrenheit:";
cin>>num1;
Fa1=num1 - 32;
Fa2=Fa1 * 5/9;
cout<<"Celsius:";
cout<<Fa2;"\n";
cout<<"Celsius to Fahrenheit""\n""\n";
cout<<"Enter Celsius:";
cin>>num1;
Ce1=num1 * 1.8;
Ce2=Ce1 + 32;
cout<<"Fahrenheit:";
cout<<Ce2;
system("PAUSE");
}
in this is my output.
[IMG]
http://i188.photobucket.com/albums/z23/footlongdog/Untitled-7.jpg[/IMG]
My problem is how can i put spaces in the Celsius to Fahrenheit and i also want to put down the "Press any key to continue...."
i use the code "\n" but it did not worked.
how can i solve this problem?