会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
iamvirus
谢谢同学们,有其他的算法也贴出来吗!
博客园
首页
新随笔
联系
订阅
管理
2012年4月12日
打印输出九九乘法表
摘要: 用do while 的解法: 1 #include<iostream> 2 using namespace std; 3 void main() 4 { 5 int i=1,j; 6 do 7 { j=1; 8 while(j<=i) 9 {10 cout<<i<<'x'<<j<<'='<<i*j<<' ';11 j++;12 }13 cout<<endl;14 i++;15 }16 while(i<=9);17 }用fo...
阅读全文
posted @ 2012-04-12 23:09 iamvirus
阅读(352)
评论(0)
推荐(0)
编辑
公告