Write a C program at /workspace/gcd.c that computes the greatest common divisor (GCD) of two integers passed…
Write a C program at /workspace/gcd.c that computes the greatest common divisor (GCD) of two integers passed…: a task in Repo2RLEnv TerminalWorld (EuniAI) (Harbor dataset). Once compiled, run the executable with the following pairs of arguments in order and capture all output to /app/result.txt …
The task
Once compiled, run the executable with the following pairs of arguments in order and capture all output to `/app/result.txt`: - 42 and 18 - 18 and 42 - -42 and 18 - 982451653 and 776531401 - 78423360000000000 and 35241600000000000 - 68719476736 and 1152921504606846976 - 1000000000000000000 and 999999999999999999
Part of FineEnvs/repo2rlenv-terminalworld.