Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Manume/9373bdbc76c7b2940a5a to your computer and use it in GitHub Desktop.
Save Manume/9373bdbc76c7b2940a5a to your computer and use it in GitHub Desktop.
Program to enter an integer and output its 15 multiples
#include <iostream.h>
#include <conio.h>
int main()
{
clrscr();
int x;
cout << "Enter an integer less than 2185 : ";
cin>>x;
cout << "The first 15 multiples of " << x << " are : ";
for(int y=1;y<16;y++)
cout << "\n" << x << "x" << y << "=" << x*y;
getch();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment