Skip to content

Instantly share code, notes, and snippets.

@fa7ad

fa7ad/mTable.cpp

Last active Mar 18, 2016
Embed
What would you like to do?
Simple Multiplication table given the input. Codemarshal DIU challenge
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
for(int i = 1; i < 11; i++){
cout << n << " x " << i << " = " << n*i << "\n";
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment