Unknown july 5 2017 at 1 41 am. But if you assign i i 1 before the sum operation then it will be correct. Print the table of a given number n up to ten terms.