Ochkasty_Dino

Practicum5-IV-2

Oct 20th, 2019
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp2
  8. {
  9.     class Program
  10.     {
  11.         static void F_n(double n)
  12.         {
  13.             if(n>=1)
  14.             {
  15.                 Console.Write("{0} ", n);
  16.                 F_n(n - 1);
  17.             }
  18.         }
  19.         static void Main()
  20.         {
  21.             Console.Write("Please enter the n=");
  22.             double n = double.Parse(Console.ReadLine());
  23.             F_n(n);
  24.         }
  25.     }
  26. }
RAW Paste Data