inhuman_Arif

Loop 1

Sep 29th, 2021
771
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4. typedef long long ll;
  5.  
  6. int main()
  7. {
  8.     #ifndef ONLINE_JUDGE
  9.         freopen("input.txt", "r", stdin);
  10.         freopen("output.txt", "w", stdout);
  11.     #endif
  12.  
  13.     int n;
  14.     cin >> n;
  15.     for(int i=1;i<11;i++)
  16.         printf("%d x %d = %d\n",n,i,n*i);
  17.    
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment