Table of a number

Description:

Write a program to print the table of a given number Test Case 1 Input (stdin) 5 Expected Output 5*1=5 5*2=10 5*3=15 5*4=20 5*5=25 5*6=30 5*7=35 5*8=40 5*9=45 5*10=50 Test Case 2 Input (stdin) 3 Expected Output 3*1=3 3*2=6 3*3=9 3*4=12 3*5=15 3*6=18 3*7=21 3*8=24 3*9=27 3*10=30

Program :

#include <iostream>
using namespace std;
int main()
{
 int n,i;
  cin>>n;
  
  for(i=1;i<=10;i++)
  {
    cout<<n<<"*"<<i<<"="<<n*i;
    cout<<'\n';
  }
 return 0;
}