Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace tESt
- {
- class Program
- {
- static void Main(string[] args)
- {
- var points = double.Parse(Console.ReadLine());
- double bonus = 0;
- if (points <= 100)
- {
- bonus = bonus + 5;
- }
- else if (points > 1000)
- {
- bonus = bonus + (points * 0.10);
- }
- else if (points > 100 )
- {
- bonus = bonus + (points * 0.20);
- }
- if (points % 10 == 5)
- {
- bonus += 2;
- }
- if (points % 2 == 0)
- {
- bonus += 1;
- }
- Console.WriteLine(bonus);
- Console.WriteLine(points + bonus);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment