#include<iostream>
using namespace std;
// Pre-conditions: three initialized float variables input
// Post-conditions: the value in each input variable is
// decreased by 1
void decreaseByOne(float& num1,float& num2,float& num3);
int main()
{
float num1, num2, num3;
// Get three input numbers
cout << "Enter three numbers: ";
cin >> num1 >> num2 >> num3;
// Decrease each variable value
decreaseByOne(num1,num2,num3);
// Print out new variable values
cout << "Newly decreased numbers: "
<< num1 << " " << num2 << " "
<< num3 << endl;
return 0;
}
// Decrease each variable value by one
void decreaseByOne(float& num1, float& num2, float& num3)
{
num1-=1;
num2-=1;
num3-=1;
}