#include #include // for setw #include "prompt.h" using namespace std; // simple illustration of nested loops int main() { int j,k; int limit = PromptRange("number for multiply table",2,15); for(j=1; j <= limit; j++) { for(k=1; k <= j; k++) { cout << setw(3) << k*j << " "; } cout << endl; } return 0; }