Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Nums1_10
- {
- class Program
- {
- static void Main(string[] args)
- {
- int dogsNumber = int.Parse(Console.ReadLine());
- int otherAnimals = int.Parse(Console.ReadLine());
- double price1 = dogsNumber * 2.5;
- double price2 = otherAnimals * 4;
- double finalPrice = price1 + price2;
- Console.WriteLine($"{finalPrice} lv.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement