CA 1 - Positive/Negative/Zero & Even/Odd

Complete Mon, 02/11’s in-class assignment, due Wed, Feb 13 in class via submission portal

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


© 2020. Some rights reserved.