int a=3,b=55; double c1=3.4,c2=15.678; printf("a =%8d,b =%8d\n",a,b);//佔8格,靠右 printf("c1=%8.2f,c2=%8.2f",c1,c2);//共8格,靠右,小數點取2位.
確定! 回上一頁