Generation

generate functionThu, 15 Jun 2023

realizar un programa que pida un numero entra 1 y 10 para luego mostrar por pantalla su tabla de multiplicar hasta el 10

#include <iostream> using namespace std; int main() { int x; cout << "Enter a number between 1 and 10: "; cin >> x; for (int i = 1; i <= 10; i++) { cout << x << " x " << i << " = " << x * i << endl; } return 0; }

Questions about programming?Chat with your personal AI assistant