tsvetelinapasheva

TsvetelinaPasheva/FirstStepInCodingLab/08.PetShop

Dec 1st, 2020 (edited)
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _08.PetShop
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.            
  10.             int dogsNumber = int.Parse(Console.ReadLine());
  11.             int otherAnimalsNumber = int.Parse(Console.ReadLine());
  12.             double dogsPackPrice = 2.50;
  13.             int otherAnimalsPackPricec = 4;
  14.  
  15.             Console.WriteLine((dogsNumber * dogsPackPrice) + (otherAnimalsNumber * otherAnimalsPackPricec) + (" ") + ("lv."));
  16.  
  17.         }
  18.     }
  19. }
Add Comment
Please, Sign In to add comment