A1)Write a C++ Program that gets a number from the user.If the given number is negative in your input validation loop you should ask for another number until the user input is a positive value. Then finds the factorial of the given number by while loop.Your test will be based on the given example for adding to the report.
Ex:please enter a positive number:
the user input is -5
please enter another number:
the user input is 4 the program prints, {4*3*2*1=24}
The format of the print should be absolutely the same as the one put in brackets

Solved
Show answers

Ask an AI advisor a question