CSC112 Spring 2016 Examples
1/* 2 * A program for cheating at multiplication. 3 * For that odd 3rd grader who can't multiply, but can write C++ code. 4 */ 5#include <iostream> 6 7using namespace std; 8 9int main() { 10 int table[12][13]; 11 12 //populate the table 13 for(int i=0; i<12; i++) { //loop over all the rows 14 for(int j=0; j<13; j++) { //loop over all the columns 15 table[i][j] = (i+1) * (j+1); 16 } 17 } 18 19 return 0; 20} 21 22