Search found 1 match
- Thu Aug 13, 2015 9:11 am
- Forum: Volume 101 (10100-10199)
- Topic: 10137 - The Trip
- Replies: 159
- Views: 65947
Re: 10137 - The Trip
//C++ Source #include <iostream> #include <fstream> #include <string> #include <iomanip> #include <math.h> using namespace std; int main() { int students, counter=0; double payments[1000], total=0, deficits[1000], surplus[1000]; while(1) { cin >> students; total = 0; if (students == 0) { for (int i...