blob: 54bd036492963ceb5a5dfaa2ced357d5a17bd124 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
using namespace std;
using std::cout;
using std::cin;
using std::endl;
int UserInputTemp;
int CelciusToFarenheit(int Celcius2Farenheit) {
Celcius2Farenheit = (UserInputTemp * (9 / 5)) + 32;
return UserInputTemp;
}
int main()
{
cout << "Please enter a temperature in Celcius: ";
cin >> UserInputTemp;
cout << CelciusToFarenheit(UserInputTemp);
}
|