Commit cfb6f31d authored by Matthias Braun's avatar Matthias Braun
Browse files

improved fak.c

[r20798]
parent a9df69e9
......@@ -9,6 +9,8 @@ int factorial(int x) {
}
int main(int argc, char **argv) {
int val = atoi(argv[1]);
int val = 7;
if(argc>1)
val = atoi(argv[1]);
printf("%d\n", factorial(val));
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment