Advertisement
Guest User

Untitled

a guest
Dec 7th, 2021
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.78 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. class Program
  7. {
  8.     static void Main()
  9.     {
  10.        int score = int.Parse(Console.ReadLine());
  11.             if (score <= 0 || score > 9)
  12.             {
  13.                 Console.WriteLine("Invalid score");
  14.             }
  15.             if(score > 0 && score<=3 )
  16.             {
  17.                 score = score * 10;
  18.                 Console.WriteLine(score);
  19.             }
  20.             if (score >= 3 && score <= 6)
  21.             {
  22.                 score = score * 100;
  23.                 Console.WriteLine(score);
  24.             }
  25.             if (score >= 7 && score <= 9)
  26.             {
  27.                 score = score * 1000;
  28.                 Console.WriteLine(score);
  29.             }
  30.            
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement