kk258966

3/19 C++ 作業一

Mar 19th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(void)
  4. {
  5. int a=1;
  6. char b='q';
  7. float c=2.5;
  8. double d=3.5;
  9. int x;
  10. x=(a-b)+(c*d)/b;
  11. printf("x=%d\n",x);
  12.  
  13.  
  14. printf("===========================\n") ;
  15.  
  16.  
  17.     system("pause");
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment