Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Matrix_1
#include <iostream> using namespace std; int main() { int n = 5; int m = 3; int k = 1; int A[5][3]; // Matrix n x n // Filling matrix n x n with // natural numbers from 1 to n^2 for (int j = 1; j <= m; j++) { for (int i = 1; i <= n; i++) { A[i][j] = k; cout << A[i][j] << " "; k++; } cout << endl; } // By reason of return 0; }
run
|
edit
|
history
|
help
0
inherited
123
Zero
Enum Class Comparisons
multiplie linked list numbers
masodijegy.cpp
VS'15 parameter pack sfinae
Dices by GOOSE
test
infix to postfix v 3.0 with improved eval()