aboutsummaryrefslogtreecommitdiff
path: root/InClassExercise3/Project1/IN-class.cpp
blob: 1cfc1c48b99a9c4ba4de9e41c16dee31fd790d90 (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
35
36
37
38
39
#include <iostream>
// Name: Nataliia Brown
// Date: 1/13/24
// Class: CST 116
// Assignment: InClass Exercise 3

#include <iostream>


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



int main()
{

	cout << "Please enter a whole number: ";

	int i = 0;

	cin >> i;

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

	return 0;
}