Advertisement
Guest User

Kurcina

a guest
Dec 14th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleApplication1
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. double d = double.Parse(Console.ReadLine());
  13. double n = double.Parse(Console.ReadLine());
  14. double s = double.Parse(Console.ReadLine());
  15. double dc = d * 100;
  16. Console.WriteLine(Math.Round((dc - n * s) / (n + 1), 2));
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement