rijads

tablica

Nov 4th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. void main(){
  4.     cout << "X |1\t2\t3\t4\t5\t6\t7\t8\t9\t10\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n";
  5.     for (int i = 1; i <= 10; i++){
  6.         cout << i << " |";
  7.         for (int j = 1; j <= 10; j++){
  8.             cout<<j*i << "\t";
  9.         }
  10.         cout << endl;
  11.     }
  12.     system("pause>0");
  13. }
Advertisement
Add Comment
Please, Sign In to add comment