Working version
This commit is contained in:
@ -17,16 +17,8 @@ int factorial(int i){
|
||||
|
||||
int main()
|
||||
{
|
||||
FILE * out = fdopen(STDOUT_FILENO, "w");
|
||||
int value=0;
|
||||
int res = read(STDIN_FILENO, &value, 1);
|
||||
// FILE * inp = fdopen(STDIN_FILENO, "r");
|
||||
//fprintf(out, "hello world!\n");
|
||||
// int value = 0;
|
||||
// int res = fscanf(inp, "%d", value);
|
||||
// int res = scanf("%d", value);
|
||||
volatile int result = factorial (10);
|
||||
fprintf(out, "Factorial is %d\n", result);
|
||||
printf("Factorial is %d\n", result);
|
||||
printf("End of execution");
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user