Computer Science, asked by taureantimes, 16 days ago

How to write the c++ programme of this questions​ (for loop)

Attachments:

Answers

Answered by samarthkrv
1

Answer:

#include <iostream>

using namespace std;

int main() {

   int n;

   cout << "Enter the number of which you want to print multiplication table:";

   cin >> n;

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

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

       }

   return 0;

}

Explanation:

Similar questions