Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _05._Stream_of_letters
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- string text = Console.ReadLine(); //"softuni"
- //всички позиции в текста (0 до последната)
- //повтаряме: взимаме символа на позиция + печатаме
- //начало: 0
- //край: дължина - 1
- //промяна: +1
- for (int position = 0; position <= text.Length - 1; position++)
- {
- char symbol = text[position];
- Console.WriteLine(symbol);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement