Ad Code

Write a multiplication table Program up to a given range Using C++

Advertisements

Write a multiplication table Program up to a given range Using C++

Display multiplication table up to a given range

#include <iostream>

using namespace std;


int main()

{

    int n, range;


    cout << "Enter an integer: ";

    cin >> n;


    cout << "Enter range: ";

    cin >> range;

    

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

        cout << n << " * " << i << " = " << n * i << endl;

    }

    

    return 0;

}

Download Link
Advertisements

Post a Comment

0 Comments