2009年7月27日

简单的 c++ 九九乘法表

 1
 2#include "stdafx.h"
 3
 4
 5int _tmain(int argc, _TCHAR* argv[])
 6{
 7    for (int i=1;i<=9;i++)
 8    {
 9        for (int j=1;j<=i;j++)
10        {
11            printf("%dx%d=%d\t",j,i,i*j);
12        }

13        printf("\n");
14    }

15    return 0;
16}

17
18

posted @ 2009-07-27 15:36 惜缘 阅读(708) | 评论 (1)编辑 收藏


仅列出标题  

posts - 1, comments - 1, trackbacks - 0, articles - 0

Copyright © 惜缘