Print multiplication table, flashback

 1 #include<stdio.h>
 2 int main(){
 3     for(int i=1;i<=9;i++){
 4         for(int a=1;a<=9-i;a++){
 5             printf("\t");
 6         
 7         }
 8         for(int j=1;j<=i;j++){
 9             printf("%d*%d=%d\t",j,i,i*j);
10         }
11         printf("\n");
12     }
13 }
14  

 

Guess you like

Origin www.cnblogs.com/bukechuji/p/11037777.html