someonehelpmewiththiscoding

Started by gay, 1 year ago

Replies: 5  Views: 6

gay

Posts: 83

Joined: 09/30/2018

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

Graphictoria

Posts: 156

Joined: 09/30/2018

Posted on: Sep 30 2018 11:35:58 PM

no ‍

gay

Posts: 83

Joined: 09/30/2018

Posted on: Sep 30 2018 11:36:22 PM

thx man i appreciate the halp

Graphictoria

Posts: 156

Joined: 09/30/2018

Posted on: Sep 30 2018 11:36:51 PM

gay

Posts: 83

Joined: 09/30/2018

Posted on: Sep 30 2018 11:37:40 PM

())()()

Graphictoria

Posts: 156

Joined: 09/30/2018

Posted on: Sep 30 2018 11:39:04 PM

print("Hello World")