Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp2
- {
- class Program
- {
- static void Main(string[] args)
- {
- double startPoints = double.Parse(Console.ReadLine());
- double givePoints = 0;
- if (startPoints<=100)
- {
- givePoints = 5;
- }
- else if (startPoints>1000)
- {
- givePoints = startPoints * 0.1 ;
- }
- //по условие е зададена като втора проверка, тази която ни е else ???
- else
- {
- givePoints = (startPoints * 0.20);
- }
- if (startPoints%2==0)
- {
- givePoints = givePoints + 1;
- }
- else if (startPoints%10==5)
- {
- givePoints += 2;
- }
- Console.WriteLine(givePoints);
- Console.WriteLine(givePoints + startPoints);
- }
- }
- }
Add Comment
Please, Sign In to add comment