Advertisement
marto9119

Untitled

Jan 9th, 2023
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | Source Code | 0 0
  1. using System;
  2.  
  3. namespace HelloSoftUni
  4. {
  5.     class Program
  6.     {
  7.         static void Main(String[] args)
  8.         {
  9.             int aquariumLong = int.Parse(Console.ReadLine());
  10.             int aquariumShort = int.Parse(Console.ReadLine());
  11.             int aquariumHight = int.Parse(Console.ReadLine());
  12.             double percent = double.Parse(Console.ReadLine());
  13.  
  14.             double neadLiters = ((aquariumLong * aquariumShort * aquariumHight) * 0.001) * (1 - (percent / 100));
  15.             Console.WriteLine(neadLiters);
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement