Advertisement
Graf_Rav

Untitled

Feb 12th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. using DoublyLinkedList;
  9.  
  10. namespace ConsoleApp11 {
  11. class Program {
  12. static void Main(string[] args) {
  13. while (true) {
  14. Console.WriteLine("Введите n");
  15. int n = int.Parse(Console.ReadLine());
  16. Console.WriteLine();
  17. /*foreach (var elem in FareySequence.Farey(n)) {
  18. Console.Write($"{elem.Item1}/{elem.Item2} ");
  19. }*/
  20. Console.WriteLine(FareySequence.Farey(n).ToList().Count);
  21. Console.WriteLine(FareySequence.a);
  22. }
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement