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;
- using System.Threading.Tasks;
- namespace task_2
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Please write your score: ");
- int score = int.Parse(Console.ReadLine());
- if ((score <= 0) || (score >= 10))
- {
- Console.WriteLine("Invalid Score!");
- }
- if ((score >= 1) && (score <= 3))
- {
- score = score * 10;
- Console.WriteLine(score);
- }
- if ((score > 3) && (score <= 6))
- {
- score = score * 100;
- Console.WriteLine(score);
- }
- if ((score > 6) && (score <= 9))
- {
- score = score * 1000;
- Console.WriteLine(score);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement