保留小数 #include <stdio.h> int main() { float a=8.22; float b=3.11; float c=a/b; printf("%.2f\n",c); return 0; }