Initial commit

master
Baltazár Radics 2020-09-24 18:02:53 +02:00
commit e0d81d00d0
Signed by: baltazar
GPG Key ID: 9440F591E4397C3E
1 changed files with 11 additions and 0 deletions

11
README.md 100644
View File

@ -0,0 +1,11 @@
# For loop exercises
1. A string contains either the signs `+`, `-` or `0`. Declare an integer with
the initial value of 1. On every `+` in the string, add 1. On every `-`,
subtract 1. On every zero, make the integer be equal zero. After the last
symbol, write the value on the screen.
2. Change the previous program so that the `!` symbol calculates the factorial
of the current value of the integer and saves it in the integer.
3. Copy every second letter of a string into another string and display on the
screen.
4. Copy every second word of a string into another string.