Answer to Question #291564 in C++ for Unnati

Question #291564

Write a c++ program to generate multiplication table of 24 (note: 24,48,72.....240)

1
Expert's answer
2022-01-28T07:59:25-0500
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog