Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp2
- {
- class Program
- {
- static void F_n(double n)
- {
- if(n>=1)
- {
- Console.Write("{0} ", n);
- F_n(n - 1);
- }
- }
- static void Main()
- {
- Console.Write("Please enter the n=");
- double n = double.Parse(Console.ReadLine());
- F_n(n);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment