// july10ex2.cpp : Defines the entry point for the console application.
// This program creates a multiplication table in the form:
//    0  x  0 = 0
//    0  x  1 = 0
//     .
//     .
//    9  x  9 = 81

#include "stdafx.h"

int main(int argc, char* argv[])
{

	int factor1, factor2, product;

	for (factor1=0; factor1<=9; factor1++){

	    for (factor2=0; factor2<=9; factor2++) {
              product=factor1 * factor2;
			  printf("%2d x %2d = %2d \n", factor1, factor2, product);

		}  /* end for factor2 */

		printf("**********************\n");
	} /* end for factor1 */

	return 0;
}