The university was given the task to implement a console application that displays the Fibonacci number by its number (the number is specified via command line arguments) with the following condition: There should not be any letters in the application source code. With the count of the number of problems did not arise, actually here:

__$(_) { ___ = !_ ? 0 : _ == -1 || _ == 1 ? 1 : _ > 0 ? __$(_ - 1) + __$(_ - 2) : __$(_ + 2) - __$(_ + 1); } 

The problem is that I have absolutely no idea how to convert the command line argument from const char ** to int and how to display the resulting value on the screen, taking into account the set condition

  • one
    I think I’m not the only one who has a question for me - Dmitry Chistik
  • I had the same question, but the task is a task, I have to do it - Timur Yalimov
  • and who said that the number should be set exactly the number? can be asterisks. Since somewhere 46-48 the number already exceeds int32 / uint32. Stuff 40 stars - quite possible. And I would not use a recursive algorithm like the above — better by iteration. - KoVadim
  • But we should write at least the type of the argument main. It's impossible. - HasmikGaryaka
  • int main (int! _, char **! __) { - HasmikGaryaka

0