C++ Program Problem: Solutions & Tips

  • Context: C/C++ 
  • Thread starter Thread starter Amr719
  • Start date Start date
  • Tags Tags
    C++ Program
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
Amr719
Messages
31
Reaction score
0
Untitled.png
 
Physics news on Phys.org
I cannot Understand the marked lines
 
The lines in blue in your image pretty well explain what is happening in the pseudocode. Are you having trouble understanding the problem description?
 
No I understand the description. But I don't understand the form of writing the code . Why in the first line he wrote units -500 and why in the second line he wrote units - 1000