Control Statement 9

Description:

Write a program which takes integer number and prints the table of this number. Test Case 1 Input (stdin) 2 Expected Output 2 4 6 8 10 12 14 16 18 20 Test Case 2 Input (stdin) 5 Expected Output 5 10 15 20 25 30 35 40 45 50

Program :

#include <iostream>

using namespace std;

int main()

{

int n,i;

  cin>>n;

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

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

return 0;

}