Skip to content

Instantly share code, notes, and snippets.

@fa7ad
Last active March 18, 2016 02:14
Show Gist options
  • Select an option

  • Save fa7ad/45ccba633e997a8fecd4 to your computer and use it in GitHub Desktop.

Select an option

Save fa7ad/45ccba633e997a8fecd4 to your computer and use it in GitHub Desktop.
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