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[]) {

#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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!