Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int mat[3][9];
- mat[0][0] = 1;
- mat[0][1] = 2;
- mat[0][2] = 6;
- mat[0][3] = 9;
- mat[0][4] = 4;
- mat[0][5] = 3;
- mat[0][6] = 15;
- mat[0][7] = 10;
- mat[0][8] = 50;
- for(int i = 0; i < 9; i += 1) {
- if(mat[0][i] == 1) {
- cout << "cobblestone ";
- }
- else if(mat[0][i] == 2) {
- cout << "obsidian ";
- }
- else if(mat[0][i] == 6) {
- cout << "bricks ";
- }
- else if(mat[0][i] == 9) {
- cout << "bones ";
- }
- else if(mat[0][i] == 4) {
- cout << "wither skulls ";
- }
- else if(mat[0][i] == 3) {
- cout << "nether wart ";
- }
- else if(mat[0][i] == 15) {
- cout << "diamonds ";
- }
- else if(mat[0][i] == 10) {
- cout << "emerald ";
- }
- else if(mat[0][i] == 50) {
- cout << "golden apple ";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement