summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/CST116-Lab2-Chambers.cpp
blob: aed2e7e67d0f20fcab2b7eedd3bd5a5d5a83fc09 (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
29
#include <iostream>

using namespace std;

using std::cout;
using std::cin;
using std::endl;

int main()
{
	float Giventemp, C, F, celsius, fahrenheit;

	
	cout << "Will your temperature be in celsius(C) or fahrenheit(F)?";
	cin >> Giventemp;

	if (Giventemp = C)
	{
		cout << "Please enter a temperature: ";
		cin >> celsius;
	}
	if (Giventemp = F)
	{
		cout << "Please enter a temperature: ";
		cin >> fahrenheit;
	}
}