Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int myArray[10][10];
- for (int i = 0; i <= 9; ++i){
- for (int t = 0; t <=9; ++t){
- myArray[i][t] = i+t; //This will give each element a value
- }
- }
- for (int i = 0; i <= 9; ++i){
- for (int t = 0; t <=9; ++t){
- cout << myArray[i][t] << "n";
- }
Add Comment
Please, Sign In to add comment