aboutsummaryrefslogtreecommitdiff
path: root/Project1/program.cpp
blob: 3af16c7ac10c7fbce836e445d108c588da5e7314 (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
32
33
34
 // Name: Austin Lujan
// Date: 1/16
// Class: CST 116
// Lecture

#include <iostream>

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

int main()
{
	cout << "Enter a whole number: ";

	int number = 0;

	cin >> number;

	if (number > 0)
	{
		cout << "Your number is positive\n";
	}
	else if (number < 0)
	{
		cout << "Your number is negative\n";
	}
	else
	{
		cout << "Your number is zero\n";
	}

	return 0;
}