Math Table

Description:

Karthik need to teach his sister about tables.He need to write a program that get a number as an input and prints the table values up to 10. Test Case 1 Input (stdin) 2 Expected Output 1x2=2 2x2=4 3x2=6 4x2=8 5x2=10 6x2=12 7x2=14 8x2=16 9x2=18 10x2=20 Test Case 2 Input (stdin) 10 Expected Output 1x10=10 2x10=20 3x10=30 4x10=40 5x10=50 6x10=60 7x10=70 8x10=80 9x10=90 10x10=100

Program :

#include<iostream>

using namespace std;

int main()

{

int i,n;

cin>>n;

for(i=1;i<=10;++i)

cout<<i<<"x"<<n<<"="<<n*i<<"\n";

return 0;

}