Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 21st, 2010  |  syntax: None  |  size: 0.52 KB  |  views: 78  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }