Write a c++ program to generate multiplication table of 24 (note: 24,48,72.....240)
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
const int N=24;
for (int i=1; i<=10; i++)
cout << N << " * " << setw(2) << i << " = " << setw(3)
<< N*i << endl;
}
Comments
Leave a comment