Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace P8._FactorialDivision
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- double numberOne = double.Parse(Console.ReadLine());
- double numberTwo = double.Parse(Console.ReadLine());
- double resultOne = 1;
- double resultTwo = 1;
- for (double i = numberOne; i > 0; i--)
- {
- resultOne *= i;
- }
- for (double i = numberTwo; i > 0; i--)
- {
- resultTwo *= i;
- }
- Console.WriteLine($"{resultOne / resultTwo:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement