Write, compile and submit a program with c source file


Program C.
Write, compile and submit a program with C source file p6.c and executable file p6 that does the following:  
Prompt the user for input as follows:
Input a non-negative integer:
Read in an integer value from the user.
If the input value is non-negative, the program gives a response of the form:
5 factorial equals 120.
where 5 is replaced by the actual input value and 120 is replaced by the calculated factorial value (be sure your code handles the case where 0 is input correctly).
If the input value is negative, the program should output
Negative values are not allowed 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write, compile and submit a program with c source file
Reference No:- TGS096243

Expected delivery within 24 Hours