Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added factorial using recursion #179

Merged
merged 12 commits into from
Oct 20, 2020
Prev Previous commit
Next Next commit
Added program to generate Multiplication table using C++
  • Loading branch information
aalok28 committed Oct 19, 2020
commit 8905883b3ed4e9704e9e9af0eb2b989fafb1e838
17 changes: 17 additions & 0 deletions CPP/Multiplication table.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <iostream>
using namespace std;

int main()
{
int n;

cout << "Enter a positive integer: ";
cin >> n;

for (int i = 1; i <= 10; ++i)
{
cout << n << " * " << i << " = " << n * i << endl;
}

return 0;
}