Question: Solve in C++ Define a function PrintFeetInchShort, with int parameters numFeet and numInches, that prints using ' and shorthand. Ex: PrintFeetInchShort(5, 8) prints: 5'
Solve in C++
Define a function PrintFeetInchShort, with int parameters numFeet and numInches, that prints using ' and " shorthand. Ex: PrintFeetInchShort(5, 8) prints:
5' 8"
Hint: Use \" to print a double quote.
excersise:
#include
/* Your solution goes here */
int main() { PrintFeetInchShort(5, 8); cout << endl;
return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
