kk258966

2/26 C++ 練習三

Feb 26th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4.   float i=6.1;   //浮點數
  5.  
  6.   printf("%f\n",i);   // 顯示小數%f  %.2f  控制到小數第幾位
  7.  
  8.     system("pause");
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment