Answer:
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.
```
#!/usr/local/bin/python3
import sys
def print_factorial( user_val ):
if( user_val < 1 ):
return( 1 )
else:
return( print_factorial( user_val - 1 ) * user_val )
if( __name__ == "__main__" ):
if( len( sys.argv ) == 2 ):
print( print_factorial( int ( sys.argv[ 1 ] ) ) )
else:
sys.stderr.write( "usage: %s <integer>\n" % sys.argv[ 0 ] )
exit( 0 )
```
Answer:
Following is given the detailed java program as needed.
Last image displays the output of the program
I hope it will help you!
Explanation: