Advertisement
Guest User

Untitled

a guest
Feb 4th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace _01.Task
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             long n = long.Parse(Console.ReadLine());
  14.             long s = long.Parse(Console.ReadLine());
  15.             decimal p = decimal.Parse(Console.ReadLine());
  16.             decimal oneRealm = 500;
  17.  
  18.             decimal sheets = n * s;
  19.             decimal neededReams = sheets / oneRealm;
  20.  
  21.             Console.WriteLine("{0:F2}", neededReams * p);
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement