Advertisement
deyanivanov966

08. Pet Shop

Apr 6th, 2021
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Nums1_10
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int dogsNumber = int.Parse(Console.ReadLine());
  10.             int otherAnimals = int.Parse(Console.ReadLine());
  11.  
  12.             double price1 = dogsNumber * 2.5;
  13.             double price2 = otherAnimals * 4;
  14.             double finalPrice = price1 + price2;
  15.  
  16.             Console.WriteLine($"{finalPrice} lv.");
  17.  
  18.         }
  19.     }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement