![](https://i-blog.csdnimg.cn/blog_migrate/932c3844d2e9074eb245f475c7f78ee6.png)
grid++ 任意纸张大小
Here you will get C++ program to print table on any number. The user will enter a number and its table will be printed.
在这里,您将获得C ++程序以任意数量的表格打印表格。 用户将输入一个数字并打印其表格。
#include<iostream>
using namespace std;
int main()
{
int i,n;
cout<<"Enter any number:";
cin>>n;
for(i=1;i<=10;++i)
cout<<"\n"<<n<<" * "<<i<<" = "<<n*i;
return 0;
}
Output
输出量
Enter any number:6
输入任意数字:6
6 * 1 = 6 6 * 2 = 12 6 * 3 = 18 6 * 4 = 24 6 * 5 = 30 6 * 6 = 36 6 * 7 = 42 6 * 8 = 48 6 * 9 = 54 6 * 10 = 60
6 * 1 = 6 6 * 2 = 12 6 * 3 = 18 6 * 4 = 24 6 * 5 = 30 6 * 6 = 36 6 * 7 = 42 6 * 8 = 48 6 * 9 = 54 6 * 10 = 60
翻译自: https://www.thecrazyprogrammer.com/2011/04/c-program-to-print-table-of-any-number.html
grid++ 任意纸张大小