Advertisement
em3ata

bonusPoints

Jul 30th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. using System;
  2.  
  3. namespace bonusPoints
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int startPoints = int.Parse(Console.ReadLine());
  10.  
  11. if (startPoints<=100)
  12. {
  13. int bonus = startPoints+5;
  14. }
  15. else if (startPoints>100)
  16. {
  17. int bonus = (startPoints / 20) * 100;
  18. }
  19. else if (startPoints>1000)
  20. {
  21. int bonus = (startPoints / 10) * 100;
  22. }
  23. if
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement