Advertisement
Guest User

Untitled

a guest
Sep 21st, 2010
732
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. // The C equivalent of my application
  2.  
  3. #include <stdio.h>
  4.  
  5. int main()
  6. {
  7. int i = 0;
  8. int p = 0;
  9.  
  10. float test;
  11.  
  12. while(i<5000000)
  13. {
  14. if(p == 100000)
  15. {
  16. printf("%d\n",i);
  17. p = 0;
  18. }
  19.  
  20. // The meat of the application
  21. test = (3 * 4.5) / 12 + (34 * 78.999) / 12.3444;
  22. test = (3 * 4.5) / 12 + (34 * 78.999) / 12.3444;
  23. test = (3 * 4.5) / 12 + (34 * 78.999) / 12.3444;
  24.  
  25. i = i + 1;
  26. p = p + 1;
  27. }
  28.  
  29. return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement