Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace liczenie_stringu
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("podaj tekst do napisania pionowo");
- string tekst = Console.ReadLine();
- int i = 0;
- int a = tekst.Length;
- Console.WriteLine("liczba znaków = " + a);
- li:
- if (i == a) goto end;
- Console.WriteLine(tekst[i]);
- i = i + 1;
- goto li;
- end:
- return;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment