top of page
for loop multiplication table using

1-#include<iostream>//We start by placing the libraries
2-using namespace std;//We start by placing the libraries
3-int main(){//main function
4-int numberTable;
5-while(true){//You repeat what will happen from number 5 to number 8
6-cout<<"please choose from 1 to 10 to show the multiplication table for it"<<endl;
7-cin>>numberTable;

8-for(int i=1;i<10;i++){
9-cout<<numberTable<<"*"<<i<<"="<<numberTable*i<<endl;}}
//We perform the print command for the multiplication table And we setThe command that performs the calculation 8
return 0;
}

image.png
bottom of page