New Answer
New Comment

1 Answers sorted by

JBlack

40

How about this[1]

for (i=1; i <=n; i++) {

  std::cout << askChatGPT("What number is at position " + i + " in the Fibonacci sequence?") << std::endl;

}

  1. ^

    Implementing askChatGPT() in C++ is left as an exercise for the reader.

1 comment, sorted by Click to highlight new comments since:

Ugh, is this your homework? Will approve this in case someone feels like answering, but maybe try GPT/Bing