Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace magazinZaCvetq
- {
- class Program
- {
- static void Main(string[] args)
- {
- var magnoli = double.Parse(Console.ReadLine());
- var zium = double.Parse(Console.ReadLine());
- var rozi = double.Parse(Console.ReadLine());
- var kaktusi = double.Parse(Console.ReadLine());
- var podarak = double.Parse(Console.ReadLine());
- var sum = magnoli * 3.25 + zium * 4 + rozi * 3.50 + kaktusi * 8;
- var danuk = sum * 0.05;
- var pechalba = sum - danuk;
- var pari = podarak - pechalba;
- if (pari < podarak)
- {
- Console.WriteLine("She will have to borrow "+"{0}", pari + " leva." );
- }
- else if (pari > podarak)
- {
- Console.WriteLine("She is left with " + "{0}",pari + " leva.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement