#include<iostream>
using namespace std;

// declare function triple
float triple(float inNum);

int main()
{
 float inNum, tripleNum;

 // Get number from user
 cout << "Give me a number: ";
 cin >> inNum;

 // Compute triple of number
 tripleNum=triple(inNum);

 // Output function result to screen
 cout << "This number tripled is "
      << tripleNum << endl;

 return 0;
}


// Define function triple
float triple(float inNum)
{
 float tripleNum;

 // multiply function input by 3
 // and save in new variable
 tripleNum=3*inNum;

 // return result of calculation
 return tripleNum;
}