There is no reason for the code to print 0 unless both your inputs are 0.
Additionally, your width parameter will always be 0 as you call: rf1.rectData(heightInput, widthInput) before retrieving the...
Type: Posts; User: newbie
There is no reason for the code to print 0 unless both your inputs are 0.
Additionally, your width parameter will always be 0 as you call: rf1.rectData(heightInput, widthInput) before retrieving the...
Also note you've got your perimeter and area calculations the wrong way around ;)