Ask Question
26 September, 00:33

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; }

+5
Answers (1)
  1. 26 September, 00:49
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers