URI 2750 - Output 4

2 comments:

  1. #include
    using namespace std;

    int main()
    {
    cout << "---------------------------------------" << endl;
    cout << "| decimal | octal | Hexadecimal |" << endl;
    cout << "---------------------------------------" << endl;
    cout << "| 0 | 0 | 0 |" << endl;
    cout << "| 1 | 1 | 1 |" << endl;
    cout << "| 2 | 2 | 2 |" << endl;
    cout << "| 3 | 3 | 3 |" << endl;
    cout << "| 4 | 4 | 4 |" << endl;
    cout << "| 5 | 5 | 5 |" << endl;
    cout << "| 6 | 6 | 6 |" << endl;
    cout << "| 7 | 7 | 7 |" << endl;
    cout << "| 8 | 10 | 8 |" << endl;
    cout << "| 9 | 11 | 9 |" << endl;
    cout << "| 10 | 12 | A |" << endl;
    cout << "| 11 | 13 | B |" << endl;
    cout << "| 12 | 14 | C |" << endl;
    cout << "| 13 | 15 | D |" << endl;
    cout << "| 14 | 16 | E |" << endl;
    cout << "| 15 | 17 | F |" << endl;
    cout << "---------------------------------------" << endl;
    return 0;
    }

    ReplyDelete
    Replies
    1. I don't know why my code didn't show up here. But thank you.

      Delete

Theme images by Jason Morrow. Powered by Blogger.