Working version

This commit is contained in:
2018-09-26 08:07:48 +02:00
parent a4bfa4e679
commit 2ebe9541d5
69 changed files with 3105 additions and 535 deletions

View File

@ -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;
}