Created
January 31, 2019 12:38
-
-
Save andrinur13/83dacb210c3056beaf71abfe9a72a03e to your computer and use it in GitHub Desktop.
soal uas no 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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