·

Análise e Desenvolvimento de Sistemas ·

Algoritmos

Send your question to AI and receive an answer instantly

Ask Question

Preview text

Estácio #include <iostream>\n#include <stdlib.h>\nusing namespace std;\nint main()\n{\n int c, ant1, ant2, atu, prox;\n ant1 = 0;\n ant2 = 0;\n atu = 1;\n for (c = 1; c <= 8; c++)\n {\n cout << atu << \"\\n\";\n prox = ant1 + ant2 + atu;\n ant1 = ant2;\n ant2 = atu;\n atu = prox;\n }\n system(\"pause\");\n}