Functional Programming, Csharp, Programming.
int b) { var res = a * b; File.AppendAllText("result.txt", res); return res; } } The scope of the function is pretty narrow, it is just two arguments. However, for some unknown reasons, it also writes to an external file. The caller of this could definitely not expect that. The cleaner version