#include <stdio.h> #include <math.h> int main() { float a = 1.0,b = 2.0,c =3.0; printf("%f %*f %f\n",a,b,c); int m = 1,n = 2,p = 3; printf("%d %*d %d",m,n,p); return 0 ; }
int m = 1,n = 2,p = 3; 把这句放在float 那个下边就行!