大佬,打印不出1*1=1
打印不出1*1=1#include <stdio.h>
int main(void)
{
int a=1;
while(a++<=9)
{
int b=1;
while(b++<=a)
{
printf("%d*%d=%d\t",a,b,a*b);
}
printf("\n");
}
printf("\n");
return 0
}
#include <stdio.h> int main( void ) { for( unsigned r=1; r!=10; ++r ) for( unsigned c=1; c<=r; ++c ) printf( "%u*%u=%-2u%c", c, r, c*r, " \n"[c==r] ); }