Write the program below in a recursive way: for(int i=1; i<n; i++) for(int j=0; j<i; j++) for(int k=0; k<i; k++) X = X + 1;
Write the program below in a recursive way:
for(int i=1; i<n; i++)
for(int j=0; j<i; j++)
for(int k=0; k<i; k++)
X = X + 1;From the Titas Gas Assistant Engineer (CSE) May 2024 – Written (BUET) exam, question 9 of 14.