{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lab12hw-function - factorial function to compute the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework Problem: Factorial Write a function that has one parameter, a nonnegative integer. The function should then compute and return the factorial of the input integer. Then write a complete program where the main function asks the user to input an integer, then calls your
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: factorial function to compute the factorial, and then displays the output....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online