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
Dices by GOOSE
lab1
Implements.cpp
Kare-Küp Tablosu
MSVC C2888 bug
Fast sine to fill array (sin/cos pair)
VS2013 hello world includes
hyy
hangman
Visual Studio C++ wont accept >> or << past the initial declarations