Skip to content

C# Advanced

Data structures, algorithms, LINQ

Tasks
3
Duration
6 weeks
Language
C#

Materials

  1. Recursion
  2. LINQ basics

Tasks

  1. N-th Fibonacci number 25 pts Read a number n (0 ≤ n ≤ 40). Print the n-th Fibonacci number, where F(0) = 0 and F(1) = 1.
  2. Factorial 25 pts Read a number n (0 ≤ n ≤ 20). Print n! (0! = 1).
  3. Prime number 30 pts Read a number n (n ≥ 1). Print yes if it is prime, otherwise no.