Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. int a, b, c, d, e;
  7. int main()
  8. {
  9. cout << "Tabliczka Mnozenia" << endl;
  10. cout << "Ile chcesz kolumn? "<<endl;
  11. cin >> d;
  12. cout << "Ile chcesz wierszy? "<<endl;
  13. cin >> e;
  14. for(a=1; a<d+1; a++)
  15. {
  16. cout<< endl;
  17. for(b=1; b<e+1; b++)
  18. {
  19. c=a*b;
  20. cout.width(10);
  21. cout<<right;
  22. cout<<c<<"|";
  23. }
  24. }
  25.  
  26.  
  27. return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement