Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
მატრიცა
#include <iostream> using namespace std; int main() { int cols,rows; cin >> cols >> rows; int a[cols][rows]; for(int i = 0; i<cols; i++){ for(int j = 0; j<rows; j++){ cin >> a[i][j]; } } int b[rows][cols]; for(int i = 0; i<rows; i++){ for(int j = 0; j<cols; j++){ b[i][j] = a[j][i]; } } for(int i = 0; i<cols; i++){ for(int j = 0; j<rows; j++){ cout << b[i][j] << " "; } cout << endl; } }
run
|
edit
|
history
|
help
-1
vertical sum
A+B ორობით სისტემაში
Laborator 2 SD
dijkstra
reverse linked list
Two pointer - MUST DO
Test 12(2021)
cppPyClass
Operation on Set Container
Square of maximum