Created
February 15, 2022 12:07
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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