Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace FishTank
- {
- class Program
- {
- static void Main()
- {
- int length = int.Parse(Console.ReadLine());
- int width = int.Parse(Console.ReadLine());
- int height = int.Parse(Console.ReadLine());
- double percentage = double.Parse(Console.ReadLine());
- double liters = length * width * height * (100 - percentage) / 100000;
- Console.WriteLine(liters);
- }
- }
- }
- Лоша практика:
- using System;
- namespace FishTank
- {
- class Program
- {
- static void Main()
- {
- Console.WriteLine(int.Parse(Console.ReadLine()) * int.Parse(Console.ReadLine()) * int.Parse(Console.ReadLine()) * (100 - double.Parse(Console.ReadLine())) / 100000);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement