aboutsummaryrefslogtreecommitdiff
path: root/Project1/project.cpp
blob: f9451df1edffe62b140a677054b1a6b0c03c206b (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
30
31
// name: Connor Mcdowell
// date: 3/9/2024
// class: CST 116
// reason: in class exercise number 3.

#include <iostream>

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

int main()
{
	int input = 0;
	cout << "Please enter a number: ";
	cin >> input;
	cout << " " << endl;
	if(input == 0)
	{
		cout << "Your input is exactly 0!" << endl;
	}
	if(input < 0)
	{
		cout << "Your number is a negative number!" << endl;
	}
	if(input > 0)
	{
		cout << "Your number is a positive number!" << endl;
	}
	return 0;
}