Question: Please code in C #include #include int main(int argc, char* aragv[]) { int fact = 1; if(argc>1) { // Please write your code here }
Please code in C
![Please code in C #include #include int main(int argc, char* aragv[]) {](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3e1a4c9909_04466f3e1a477e44.jpg)
| #include | |
| #include | |
| int main(int argc, char* aragv[]) | |
| { | |
| int fact = 1; | |
| if(argc>1) | |
| { | |
| // Please write your code here | |
| } | |
| printf("%d", fact); | |
| return 0; | |
| } |
- You are to correct all errors in and the program run correctly. - You should add code to take commandline input and return factorial value of that input number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
