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 CherryJars
- {
- class Program
- {
- static void Main(string[] args)
- {
- double compoteJarsWanted = double.Parse(Console.ReadLine());
- double jamJarsWanted = double.Parse(Console.ReadLine());
- double jarsCompote = compoteJarsWanted + 1;
- double jarsJam = jamJarsWanted + 1;
- double cherryesCompote = jarsCompote * 0.300;
- double cherryesJam = jarsJam * 0.650;
- double cherryC = cherryesCompote + (cherryesCompote * 0.05);
- double cherryJ = cherryesJam + (cherryesJam * 0.1);
- double total = (cherryC + cherryJ) * 3.2;
- Console.WriteLine($"{total:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement