Ask Question
22 June, 16:30

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.#include / * Your solution goes here * / int main (void) {PrintFeetInchShort (5, 8); printf ("/n"); return 0; }

+4
Answers (1)
  1. 22 June, 19:09
    0
    The function declaration to this question as follows:

    Function declaration:

    //declaring method printFeetInchShort, that accepts two integer parameters

    void printFeetInchShort (int numFeet, int numInches) / /method

    {//method body

    printf ("The given height is: "); / / message printing

    printf ("%d/'%d/" ", numFeet, numInches); / /value printing

    }

    Explanation:

    In the above method (function) declaration a method "printFeetInchShort" is declared, that accepts two integer variable as its parameters.

    This method uses a return type void, which means it will not return any value. The parameter "numFeet and numInches" accepts an integer value in the main method and inside the method, it will print its value by a single and double quote.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Define a function PrintFeetInchShort, with int parameters numFeet and numInches, that prints using ' and " shorthand. Ex: ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers