Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Bonus_Score
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Enter the score: ");
- int score = int.Parse(Console.ReadLine());
- if (score <= 0 || score > 9)
- {
- Console.WriteLine("Invalid score");
- }
- switch (score)
- {
- case 1:
- case 2:
- case 3:
- score = score * 10;
- break;
- case 4:
- case 5:
- case 6:
- score = (score * 100);
- break;
- case 7:
- case 8:
- case 9:
- score = (score * 1000);
- break;
- }
- Console.WriteLine(score);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement