Debian Codegraph @

help/figures/fig0612.cpp

raw symbols SCIP
1 // File: fig0612.cpp
2 // Computer Systems, Fourth Edition
3 // Figure 6.12
4
5 #include <iostream>
6 using namespace std;
7
8 int cop;
9 int driver;
10
11 int main () {
12 cop = 0;
13 driver = 40;
14 do {
15 cop += 25;
16 driver += 20;
17 }
18 while (cop < driver);
19 cout << cop;
20 return 0;
21 }