Posted on 2008-05-24 00:24
飞呀飞 阅读(677)
评论(0) 编辑 收藏 引用 网摘 所属分类:
C++
1 /*
2 本程序将打印99乘法表
3 */
4 #include <iostream>
5 int main()
6 {
7 int x,y;
8 for (x=1;x<=9;++x)
9 {
10 for(y=1;y<=x;++y)
11 {
12 std::cout<< x << "*" << y << "=" << x*y << " " ;
13 }
14 std::cout << std::endl;
15 }
16 }