Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace itvdnCourse
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Take your medal");
- int a = int.Parse(Console.ReadLine());
- if (a <= 3)
- {
- Console.WriteLine("You loose!");
- }
- if (a > 3 && a < 5)
- {
- Console.WriteLine("Bronze medal!");
- }
- if (a > 4 && a < 6)
- {
- Console.WriteLine("Silver medal!");
- }
- if (a > 6 && a < 8)
- {
- Console.WriteLine("Gold medal!");
- Console.WriteLine("Congratulations!!!");
- }
- Console.WriteLine("End program.");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement