int temp = tri;//将要输出的三位数赋bai值给temp;while (temp){ printf ("%d", temp%10);//取余数输出 temp /= 10;//除10操作}printf ("\n");