Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _08.PetShop
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int numberOfDogFood = int.Parse(Console.ReadLine());
- int numberOfCatFood = int.Parse(Console.ReadLine());
- double singlePriceForDogFood = 2.50;
- double singlePriceForCatFood = 4;
- double priceForDogFood = numberOfDogFood * singlePriceForDogFood;
- double priceforCatFood = numberOfCatFood * singlePriceForCatFood;
- double sum = priceForDogFood + priceforCatFood;
- Console.WriteLine($"{sum} lv.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement