Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int a, b, c, d, e;
- int main()
- {
- cout << "Tabliczka Mnozenia" << endl;
- cout << "Ile chcesz kolumn? "<<endl;
- cin >> d;
- cout << "Ile chcesz wierszy? "<<endl;
- cin >> e;
- for(a=1; a<d+1; a++)
- {
- cout<< endl;
- for(b=1; b<e+1; b++)
- {
- c=a*b;
- cout.width(10);
- cout<<right;
- cout<<c<<"|";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement