All pastes #886435 Raw Edit

Something

public cpp v1 · immutable
#886435 ·published 2008-01-31 17:53 UTC
rendered paste body
/*Cameron O'NealMathCalc.cppPurpose: is a math calculator*/#include <iostream>#include <math>int max(int inc_num, int inc_num1);int main(){	int option = 1;	int num;	int num1;	while (option != 6)	{		cout << "Please Select an option: \n"			 << "1- Get the floor\n"			 << "2- Get the ceiling\n"			 << "3- Get the maximum of two numbers\n"			 << "4- Get the minimum of two numbers\n"			 << "5- Convert degrees to radians\n";		switch(option){			case 1:				cout << "Please enter a number to be rounded down\n";				cin >> num;				num = floor(num);				break;			case 2:				cout << "Please enter a number to be rounde up\n";				cin >> num;				num = ceil(num);				break;			case 3:				cout << "Please enter two positive numbers to get the maximum\n";  				cin >> num >> num1;				max(num, num1);	}