【#第一文档网# 导语】以下是®第一文档网的小编为您整理的《单循环编写九九乘法表》,欢迎阅读!
#include <iostream>
using namespace std;
int main()
{
for (int i = 1,j = 1; j <= 9; i++)
{
cout<<i<<"*"<<j<<"="<<i*j<<"\t";
if(i==j)
{
i=0;
j++;
cout<<endl;
}
}
return 0;
}
相关推荐
推荐阅读
最新更新文章
热门阅读文章