sofiiiaaapiust

Untitled

Mar 20th, 2023
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include<iostream>
  2.  
  3. int main()
  4. {
  5. using std::cout;
  6. using std::endl;
  7.  
  8. int value = 24;
  9. cout << "There are " << value << " a day" << endl;
  10.  
  11. value = 24;
  12. cout << "There are " << (value -= 4) << " seasons" << endl;
  13.  
  14. value = 24;
  15. cout << "There are " << (value *= 60) << " minutes a day" << endl;
  16.  
  17. value = 24;
  18. cout << "There are " << (value /= 2) << " months a year" << endl;
  19.  
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment