/
akryukov
/
programming-basics
Обзор
Документация
Войти
/
akryukov
/
programming-basics
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/cs_src/TaskCs5683.cs
41 строка
1 KB
Alexander Kryukov
add examples for tasks 4425, 5683
10 дек 2023, 12:56
10 дек 2023, 12:56
72bc1fa
Код
Авторство
О чём код?
using System; namespace Example { class Program { static void Main(string[] args) { String str = Console.ReadLine(); String[] mas; mas = str.Split(' '); int index = 0;//переменная объединяет два назначения: //* Будущий счётчик цикла //* Индекс (номер) элемента if (index < mas.Length) { Console.WriteLine(mas[index] + " " + index); index = index + 1; } if (index < mas.Length) { Console.WriteLine(mas[index] + " " + index); index = index + 1; } if (index < mas.Length) { Console.WriteLine(mas[index] + " " + index); index = index + 1; } if (index < mas.Length) { Console.WriteLine(mas[index] + " " + index); index = index + 1; } if (index < mas.Length) { Console.WriteLine(mas[index] + " " + index); index = index + 1; } } } }