#include
INT main () {int Row_amount, column_amount; // Define the number of rows and columns required to output. INT i, j; // Define loop variable INT nsquare (int, int, int); // declared function: Return x Y times Party results;
/ / Enter the number of rows and columns that need to be printed. Printf ("PLEASE INPUT AMOUNT OF ROWS (INT) To Printout:"); Scanf ("% D", & Row_Amount); Printf ("please input amount of columns (int) To Printout: "); Scanf ("% D ", & column_amount);
// Output results: a line of line output; for (i = 1; i <= row_amount; i ) {for (j = 1; j <= column_amount; j ) Printf ("% 10d", nsquare (i, j)) ;
Printf ("/ n"); // After the line is printed, the wrap is completed.
Return 0;}
// Define function nsquare (); // Run: Returns the Y secondary result; // Parameter: (int) x, (int) y; // Return Value: (int) Result; int NSquare (int X, INT Y) {int result = 1; // Function return value, initialized to 1. INT i; // cycle variable
For (i = 1; i <= y; i ) result = result * x; return result;}