Poblem 2 in C# and f# print modified