fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int n;
  6. cout<<"enter a postive number:";
  7. cin>>n;
  8. for(int i=1;i<=10;i++){
  9. cout<<n<<"*"<<i<<"="<<n*i<<endl;
  10. }
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
enter a postive number:5220*1=5220
5220*2=10440
5220*3=15660
5220*4=20880
5220*5=26100
5220*6=31320
5220*7=36540
5220*8=41760
5220*9=46980
5220*10=52200