Question 3
Consider the below C program.
#include <stdio.h>
int main() { int n = 10; int i = 0, j = 1; while (i < n) { printf("%d ", i); i += j; j++; } return 0;}What will be the output of the above program?
0 1 2 3 4 5 6 7 8 9
0 1 3 6
0 2 4 8
1 3 6 10