fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int m;
  6. cout<<"enter an integer:";
  7. cin>>m;
  8. cout<<"Multiplication Table of :"<<m<<"upto 5"<<endl;
  9. for(int i = 1;i<=5;i++)
  10. {
  11. cout<<m<<"*"<<i<<"="<<(m*i)<<endl;
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5312KB
stdin
9
6
stdout
enter an integer:Multiplication Table of :9upto 5
9*1=9
9*2=18
9*3=27
9*4=36
9*5=45