brintos

brintos / llvm-project-archived public Read only

0
0
Text · 261 B · 3c710d6 Raw
18 lines · cpp
1#include <stdio.h>2#include <unistd.h>3 4int function(int x) {5 6  if (x == 0) // breakpoint 17    return x;8 9  if ((x % 2) != 0)10    return x;11  else12    return function(x - 1) + x;13}14 15int main(int argc, char const *argv[]) {16  int n = function(2);17  return n;18}