Started by gay, 6 years ago
Posted on: Sep 30 2018 11:35:25 pm
//
//conversion - Program to convert temperature from
// Celsius degrees into Fahrenheit:
// Fahrenheit = Celsius * (212-32)/100+32
//
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int nNumberofArgs, char* pszArgs[])
{
// enter the temperature in Celsius
int celsius
;cout << "Enter the temperature in Celsius:";
;cin >> celsius;
// convert Celsius into Fahrenheit values
int fahrenheit
;fahrenheit = celsius * 9/5 + 32;
// output the results (followed by a NewLine)
;cout << "Fahrenheit value is:";
;cout << fahrenheit << end1;
// wait until user is ready before terminating program
// to allow the user to see the program results
;cout << "Press Enter to continue..." << end1;
;cin.ignore(10, '\n');
;cin.get();
return 0;
}
Compiler says that ;cout << fahrenheit << end1; is wrong halp pls im new to this
Posted on: Sep 30 2018 11:35:58 pm
no
Posted on: Sep 30 2018 11:36:22 pm
thx man i appreciate the halp
Posted on: Sep 30 2018 11:36:51 pm
Posted on: Sep 30 2018 11:37:40 pm
())()()
Posted on: Sep 30 2018 11:39:04 pm
print("Hello World")