Computer Science, asked by surwasesudhir, 10 months ago

Print tables between given range by user.
There will be two input field i.e from and and the button to print table
Example :

from: 3
To : 5
Print button

Display table below

3 4 5
6 8 10
9 12 15
12 16 20
15 20 25
18 24 30
21 28 35
24 32 40
27 36 45
30 40 50

Answers

Answered by sswaraj04
0

Answer:

#include <iostream>

using namespace std;

int main()

{

   int a,b;

   cout<<"Enter first value of range of table";

   cin>>a;

   cout<<"Enter value till you want table";

   cin>>b;

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

   {

       for(int j=a;j<=b;j++)

       {

           cout<<j*i<<" ";

       }

       cout<<"\n";

   }

   return 0;

}

Explanation:

Hope it helps :-)

Similar questions