Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- class Program
- {
- static void Main()
- {
- int score = int.Parse(Console.ReadLine());
- if (score <= 0 || score > 9)
- {
- Console.WriteLine("Invalid score");
- }
- if(score > 0 && score<=3 )
- {
- score = score * 10;
- Console.WriteLine(score);
- }
- if (score >= 3 && score <= 6)
- {
- score = score * 100;
- Console.WriteLine(score);
- }
- if (score >= 7 && score <= 9)
- {
- score = score * 1000;
- Console.WriteLine(score);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement