CPPForSchool.com: Flow of Control Set 1: Assignment 2

2. Find the absolute value of a number entered by the user.


It is important to note that the "cstdlib" needs to be listed as one of the include statements.  Nevertheless, this assignment was not too difficult.  This became very simple after researching how to determine the absolute value of a number.  Below is my source code, followed by the output examples to confirm that it is working correctly.









Comments

Popular posts from this blog

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 8

CPPForSchool.com: Array - Single Dimension Set 1 Assignment 6

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 7