Math Table - Addition

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 1+2=3 2+2=4 3+2=5 4+2=6 5+2=7 6+2=8 7+2=9 8+2=10 9+2=11 10+2=12 Test Case 2 Input (stdin) 10 Expected Output 1+10=11 2+10=12 3+10=13 4+10=14 5+10=15 6+10=16 7+10=17 8+10=18 9+10=19 10+10=20

Program :

#include <iostream>

using namespace std;

int main()

{

int a,i;

  cin>>a;

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

    cout<<i<<"+"<<a<<"="<<a+i<<"\n";

return 0;

}