Skip to content

Instantly share code, notes, and snippets.

@andrinur13
Created January 31, 2019 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrinur13/83dacb210c3056beaf71abfe9a72a03e to your computer and use it in GitHub Desktop.
Save andrinur13/83dacb210c3056beaf71abfe9a72a03e to your computer and use it in GitHub Desktop.
soal uas no 2
#include <iostream>
using namespace std;
main() {
int nilai[3][3] = {
{0, 2, 2},
{2, 0, 2},
{2, 2, 0}
};
for(int i=0; i<3; i++) {
for(int j=0; j<3; j++) {
cout << nilai[i][j] << " ";
}
cout << endl;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment