Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _05.FishingBoat
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int budget = int.Parse(Console.ReadLine());
  10.             string season = Console.ReadLine();
  11.             int fisherCount = int.Parse(Console.ReadLine());
  12.  
  13.             double rentBoat = 0;
  14.             if (season == "Spring")
  15.             {
  16.                 rentBoat = 3000;
  17.             }
  18.             else if (season == "Summer" || season == "Autumn")
  19.             {
  20.                 rentBoat = 4200;
  21.             }
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement