Chinaunix首页 | 论坛 | 博客

分类: C/C++

2014-12-02 16:31:36


点击(此处)折叠或打开

  1. #include <stdio.h>
  2. int main()                                                                 
  3. {                                                                            
  4.     int a,b;                                                        
  5.     a=1;
  6.     b=9;
  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--;
  21.             if(b<1)
  22.             break;
  23.     }
  24.         return 0;    
  25. }

阅读(1699) | 评论(0) | 转发(0) |
2

上一篇:乘法表

下一篇:计算器

给主人留下些什么吧!~~