CA 1 - Positive/Negative/Zero & Even/Odd
in CS 102 on C++, Programming Basics
The following in-class assignment has two parts:
Part 1: Positive/Negative/Zero
Write a program that determines if a number is positive, negative, or zero.
#include <iostream>
using namespace std;
int main(){
int num = 100;
if (num > 0) {
cout << "Your number is positive";
}
/*
complete the rest of this program.
...
*/
return 0;
}
Part 2: Even/Odd
Write a program that determines if a number is even or odd.
Submission Portal
Submit your responses here: https://goo.gl/forms/bNDFuMXc6p5yA1mp1