Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class BonusScore
- {
- static void Main ()
- {
- Console.Write("Please, enter a whole number in the range [1 ... 9], SCORE = ");
- string inputStr = Console.ReadLine();
- int score = int.Parse(inputStr);
- if (score > 0 && score < 10)
- {
- if (score >= 1 && score <= 3)
- {
- Console.WriteLine("Your Final Score is: {0} !", (score * 10));
- }
- else if (score >= 4 && score <= 6)
- {
- Console.WriteLine("Your Final Score is: {0} !", (score * 100));
- }
- else
- {
- Console.WriteLine("Your Final Score is: {0} !", (score * 1000));
- }
- }
- else
- {
- Console.WriteLine("Input Error - Invalid score !!!");
- }
- Console.ReadLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement