Sum of N Using Recursion Jian-An, Lin 林建安 2022 Jan 3rd Algorithms C/C++, Recursion 123456789101112131415#include <stdio.h>int sum(int n){ if (n==0) { return 0; } else { return sum(n-1)+n; }}int main(int argc, const char * argv[]) { int num = 5; printf("%d ", sum(num)); return 0;}