MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / main

Function main

Lab_03/Fibonacci.cpp:8–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <iostream>
7using namespace std;
8int main() {
9 int a = 0, b = 1, sum = 0;
10 cout << a << endl;
11 cout << b << endl;
12 while (b < 100) {
13 sum = a + b;
14 a = b;
15 b = sum;
16 if (b > 100) {
17 break;
18 }
19 cout << sum << endl;
20 }
21 system("pause");
22 return 0;
23}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected