aznishboy

Angela's pseudocode

Oct 3rd, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. //pseudocode
  2. /*
  3. int count = 0;
  4. for(float x = 1.0; x >= 0.0; x = x*.5){
  5. count++;
  6. // make sure you format this x part to two decimal places in the cout statement below
  7. cout << count << " "<< x << endl;
  8. }
  9. */
Advertisement
Add Comment
Please, Sign In to add comment