- Define A Function Getlength That Takes Two Parameters Passed By Reference The Function Reads Two Integers From Input 1 (19.32 KiB) Viewed 43 times
Define a function GetLength() that takes two parameters passed by reference. The function reads two integers from input
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Define a function GetLength() that takes two parameters passed by reference. The function reads two integers from input
Define a function GetLength() that takes two parameters passed by reference. The function reads two integers from input as feet and inches in this order. The function does not return any value. Ex: If the input is 25 2, then the output is: 25 feet and 2 inches 1 #include <iostream> 2 using namespace std; 3 4 /* Your code goes here */ 5 6 int main() { 7 int usrFeet; 8 9 10 11 12 13 14 15 } int usrInches; Get Length (usrFeet, usrInches); cout << usrFeet << "feet and " << usrInches << " inches" << endl; return 0;