#include <iostream>
using namespace std;
int main() {
// Example of a while loop to print a multiplication table
int num = 5, i = 1;
cout << "Enter a number to print its multiplication table: ";
cin >> num;
cout << "Multiplication table of " << num << ":" << endl;
while (i <= 10) {
cout << num << " * " << i << " = " << num * i << endl;
i++;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: