Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. using System;
  2.  
  3. public class Program
  4. {
  5. public static void Main()
  6. {
  7. int points = int.Parse(Console.ReadLine());
  8. int bonus = int.Parse(Console.ReadLine());
  9. if (points <= 100)
  10. {
  11. bonus = 5;
  12. }
  13. else if (points >= 100)
  14. {
  15. bonus = 0.2 * points;
  16. }
  17. else if (points >= 1000)
  18. {
  19. bonus = 0.1 * points;
  20. }
  21. if ( points % 2 = 0)
  22. {
  23. bonus = bonus + 1;
  24. }
  25. double totalPoints = points + bonus;
  26. Console.WriteLine("bonus");
  27. Console.WriteLine("TotalPoints");
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement