someonehelpmewiththiscoding

Started by gay, 6 years ago

Replies: 5  Views: 9

gay

Posts: 86

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: 86

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: 86

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")