Created
May 21, 2014 09:36
-
-
Save Manume/9373bdbc76c7b2940a5a to your computer and use it in GitHub Desktop.
Program to enter an integer and output its 15 multiples
This file contains 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.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