csansoon

P2.11 P64976 Control C201B

Sep 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main() {
  6.     int n,i=1;
  7.     cin >> n;
  8.     if (n>0) {
  9.         while (i<=n) {
  10.             cout <<n<<" x "<<i<<" = "<<(n*i)<<endl;
  11.             ++i;
  12.         }
  13.     }
  14. }
Add Comment
Please, Sign In to add comment