Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iomanip>
- #include <iostream>
- using namespace std;
- int n;
- int main(){
- cin >> n;
- for(int i = 1; i <= n ; i ++){
- for(int j = 1; j <= n; j ++){
- cout << j << "x" << i << "=";
- cout << setw(2) << j * i << " ";
- }
- cout << endl;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment