Write table in c ++ source code

 Table code In c++

#include<iostream>
using namespace std;
int main(){
int i = 1;
int b;
cout<<"enter  a number ";
cin>>b;
if(b<100){
for(int i = 1; i<11; i++){

cout<<i*b<<endl;
}
}else{

cout<<"invalid num";}
}


Comments