Give someone a couple of C # tasks, I decided to study, but nowhere to practice.

Closed due to the fact that off-topic participants tutankhamun , Visman , Zufir , Vladimir Glinskikh , Mstislav Pavlov 28 Sep '15 at 8:15 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • " Questionnaires are forbidden on Stack Overflow in Russian . To get an answer, rephrase your question so that it can be given an unambiguously correct answer." - tutankhamun, Visman, Zufir, Vladimir Glinskikh, Mstislav Pavlov
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Write any game of Tetris, or a snake, or a sapper, something like that. This is more interesting than some abstract tasks. - Specter
  • 2
    Write a program that solves the problem of Einstein (Who is the master of the fish). Not weakly working with arrays and building algorithms in general :) - ReinRaus
  • The game is not an option, but for Einstein's task - thanks, I will try ... - Niki-Timofe
  • Array processing tasks. There are many interesting things ... As well as the tasks for working with classes: creation, inheritance, polymorphism, encapsulation ... In general, the horizon of fantasy is unlimited) - IntegralAL

4 answers 4

Check out Nikita Cultin’s book C # in Tasks and Examples.

  • Thank you! I will definitely download it to the reader. - Niki-Timofe

A collection of excellent tasks for the programmer.

  • Simple problems, but thanks vseravno - Niki-Timofe
  • I liked the for cycle, I did not immediately come to the realization of the third option :) - ReinRaus
  • I remember this task about the cycles of the whole department the brain made =) - Specter
  • @Spectre, I will delete your comment with the answer to the problem, because it’s not interesting, the site is designed so that people will decide, not copy and paste. - ReinRaus
  • > How to swap the values ​​of two numeric variables without using additional variables and / or memory? There is no value exchange operator (like XCHG assembly language) in the language used. a + = b; b = ab; a- = b; - Specter

Look at this site: programming Olympiad .

  • And where is C #, this is a site for school level, i.e. there is nothing there except Pascal ... - Niki-Timofe
  • If the problem is solved using pascal, it does not mean that they cannot be solved using C #. - Freezze
  • School-level tasks, such as finding the number of digits in a number, etc. - Niki-Timofe

Let given number N. It is known that it can be divided into the sum of three non-zero numbers. Write a program that displays all such expansions. For example, the number 6 can be obtained in two ways: 1 + 2 + 3, 2 + 2 + 2.