Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. // Sophia wants to print all three-digit numbers. She wrote the following programming segment:
  2.  
  3. x= 999;
  4. while (x>999)
  5. {
  6. cout<<x<<endl;
  7. x++;
  8. }
  9.  
  10. // When she completed the program she did not get the expected result. Answer what appeared on the screen.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement