Multiplication Table

C++ Programming

C++ Programming Examples

#include<iostream>
using namespace std;

int main() {
	int i, ans;
	cout << "Four Times Table\n";

	/* loop the process using "For loop" */
	for(i=1; i<=10; i++) {
		cout << "4 X " << i << " = " << 4 * i << "\n";
	}
	return 0;
}
	


          /****** Output ******/
          

Four Times Table


4 X 1 = 4


4 X 2 = 8


4 X 3 = 12


4 X 4 = 16


4 X 5 = 20


4 X 6 = 24


4 X 7 = 28


4 X 8 = 32


4 X 9 = 36


4 X 10 = 40