As I was procrastinating one day, I happened to find a YouTube video stating “How I Would Learn To Code (If I Could Start Over)”. Since I’m soon to be attending a C++ course at a university, I thought that this is the perfect video just before starting over.
So a quick Google for simple projects gave me a few ideas on what to write, and the first one I started was creating a simple currency converter in C++, that simply converts Euro to DKK, in only 5 lines.
#include <iostream>
using namespace std;
int main()
{
int euro;
cout << "Input the amount you want to convert in euro:";
cin >> euro;
float dkk = euro * 7.44; // Conversion on the 27th of August
cout << euro << " is " << dkk << " DKK" << endl;
}
Nothing more, nothing less.