Using the vi editor, write a C program that computes and prints the factorial of a user-entered integer. More detailed specifications include:
num
.
printf("Enter the number to find the factorial of: "); scanf("%d", &num);You can assume that the user will not enter anything except an integer (i.e. not a float or alphabetic letters).
for
loop, use a while
or a do while
loop for the extra credit.