用while二重循环方式写九九乘法表
#include"stdio.h"void main(){ int i,j; printf("方法一while do\n"); i=1; while(i<=9) { j=1; do { printf("%d*%d=%-3d",i,j,i*j); j++; }while(j<=9); printf("\n"); i++; }
赞 (0)
#include"stdio.h"void main(){ int i,j; printf("方法一while do\n"); i=1; while(i<=9) { j=1; do { printf("%d*%d=%-3d",i,j,i*j); j++; }while(j<=9); printf("\n"); i++; }