Table

Table

#include<iostream>
using namespace std;
int main ()
{
int x,h1,h2,h3,h4,h5,h6,h7,h8,h9,h10;
cout<<"PLEASE ENTER THE VALUE: ";
cin>>x;
h1=x*1,h2=x*2,h3=x*3,h4=x*4,h5=x*5,h6=x*6,h7=x*7,h8=x*8,h9=x*9,h10=x*10;
cout<<"TABLE OF THAT NUMBER IS"<<endl;
cout<<"1:  "<<h1<<endl<<"2:  "<<h2<<endl<<"3:  "<<h3<<endl<<"4:  "<<h4<<endl<<"5:  "<<h5<<endl;
cout<<"6:  "<<h6<<endl<<"7:  "<<h7<<endl<<"8:  "<<h8<<endl<<"9:  "<<h9<<endl<<"10: "<<h10<<endl;
return 0;
}

Post a Comment

0 Comments