Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 11.03.2020.cpp:
- //
- #include <iostream>
- using namespace std;
- int main()
- {
- //creating array
- int mas[5][4];
- cout << "please enter number " << endl;
- for (int y = 0; y < 4; y++)
- {
- cin >> mas[0][y];
- }
- cout << endl;
- for (int y = 0; y < 4; y++)
- {
- for (int x = 1; x < 5; x++)
- {
- mas[x][y] = 0;
- }
- cout << endl;
- }
- for (int y = 0; y < 4; y++)
- {
- for (int x = 0; x < 5; x++)
- {
- cout << mas[x][y] << "\t";
- }
- cout << endl;
- }
- }
Add Comment
Please, Sign In to add comment