Chinaunix首页 | 论坛 | 博客

分类: C/C++

2014-12-02 15:50:41


点击(此处)折叠或打开

  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int a,b,c;
  5.     a=1;
  6.     b=1;
  7.     while (1)
  8.     {
  9.         while (1)
  10.         {
  11.             printf("%d*%d=%d\t",a,b,a*b);
  12.             a++;
  13.             if (a>b)
  14.             {
  15.                 printf("\n");
  16.                 break;
  17.             }
  18.         }
  19.         a=1;
  20.         b=b+1;
  21.         if(b>9)
  22.         break;

  23.     }

  24.     return 0;
  25. }

阅读(2499) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~