Here's a fun little program that anyone can enjoy!
#include <iostream>
using namespace std;
int main()
{
int day1, day2, day3;
cout << "Hello and welcome to the bar of the future!" << endl;
cout << "Please insert the number of beers you had the day before yesterday: " << endl;
cin >> day1;
cout << "Thank you! Now tell me how many beers you had yesterday: " << endl;
cin >> day2;
cout << "Thank you! Now, please insert the number of beers you have had today: " << endl;
cin >> day3;
cout << "Thank you! You have had an average of " << (day1 + day2 + day3) / 3.0 << " beers per day. You should drink more beer." << endl;
return 0;
}
Written in C++.
EDIT: It also seems I copypasted the wrong text file. Just a sec and I'll update it.
EDIT2: Nach is working on a fix for the code tags, so I'll update this to a form that compiles when he's ready.
EDIT3: Now it should be fixed.