First of all, you get a segmentation fault. You go out of bounds on line 28. Your i should go from m-1 to 0. Also, why do you redeclare int j on lines 26 and 36? You don't re-initialize them.
To get the table format that you want, first calculate all elements of A, and then write a loop to output them
Hi dear friend!
At first excuse me for re-initialize int j;dear friend I can't understand why I have segmentation fault & why I go out of bound on line 28.
Can I have your help about them?
(I must say that I'm a beginner in c++;so excuse me for my simple question.thanks.)