Answer:
The solution code is written in C++
- #include <iostream>
- using namespace std;
- void PrintFeetInchShort(int numFeet, int numInches){
- cout<<numFeet<<"\'"<<numInches<<"\""<<"\\";
- }
- int main()
- {
- PrintFeetInchShort(5, 8);
-
- return 0;
- }
Step-by-step explanation:
Firstly, create a function PrintFeetInchShort that takes two integers, numFeet and numInches (Line 5). Display the numFeet followed by a single quote, '. To print the single quote, we can use the escape sequence, \'. (Line 6)
After the single quote, it is followed with numInches and then a double quote ". The double quote is printed using another escape sequence , \".
Finally print the new line, "\\"