Pages

Friday, March 28, 2025

code to print multiplication table of a number entered by an user in C++

#include <iostream>
#include <cmath>

// code to print multiplication table of a number entered by an user.
using namespace std;

int main(){
    int num;

    cout << "enter a num : ";
    cin >> num;

    for(int i = 1; i <= 10; i++){

        int multiply = num*i;

        cout << num << " " << "x " << i << " is " << multiply << endl;
    }
    return 0;

}

No comments:

Post a Comment

how to become red on codeforces by Errichto Algorithms | explained simply in a blog

 Yes. I found an available transcript of the video and summarized it simply. The video is “How To Become Red Coder? (codeforces.com)” by Err...