-
Output the following sequence in c# (DaniWeb problem)
On December year 2013, a question was posted on DaniWeb asking to print out the following result Using loop print the following output on console. 1 121 12321 1234321 123454321 1234321 12321 121 1 The question (and the results) seems pretty easy to reproduce but once you start thinking (without knowing the best solution) you…
-
Count number of words in text
Quite a while ago, my friend had a task to write a program which would count how many words does a text contain. He was unsure how to tackle the problem. He wasn’t allowed to use any system function. He had to write all of the code by himself. As I love problems, I decided…
-
Programming every day usage differences PART 2
Difference between name-spaces and classes? Namespaces represent scopes {} where variables, classes, structs and other types reside. Classes are just types which also have to reside inside of a scope and this scope is called namespace. If you want to look at it as a hierarchy, namespaces go first here after that all the other elements/types go,…