Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- int points = int.Parse(Console.ReadLine());
- int bonus = int.Parse(Console.ReadLine());
- if (points <= 100)
- {
- bonus = 5;
- }
- else if (points >= 100)
- {
- bonus = 0.2 * points;
- }
- else if (points >= 1000)
- {
- bonus = 0.1 * points;
- }
- if ( points % 2 = 0)
- {
- bonus = bonus + 1;
- }
- double totalPoints = points + bonus;
- Console.WriteLine("bonus");
- Console.WriteLine("TotalPoints");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement