Skip to content

Instantly share code, notes, and snippets.

@CodeMaster7000
Created February 15, 2022 12:07
Show Gist options
  • Select an option

  • Save CodeMaster7000/98c7e55d4dba77532aca9d1b6f385cfc to your computer and use it in GitHub Desktop.

Select an option

Save CodeMaster7000/98c7e55d4dba77532aca9d1b6f385cfc to your computer and use it in GitHub Desktop.
A program in C++ which generates a multiplication table based on the input integer and range.
#include <iostream>
using namespace std;
int main()
{
int n, range;
cout << "Enter an integer: ";
cin >> n;
cout << "Enter range: ";
cin >> range;
for (int i = 1; i <= range; ++i) {
cout << n << " * " << i << " = " << n * i << endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment