Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Diagnostics;
- namespace rekursia_Masha
- {
- class Program
- {
- static void Main(string[] args)
- {
- Stopwatch swatch = new Stopwatch();
- swatch.Start();
- chisla();
- swatch.Stop();
- Console.WriteLine(swatch.Elapsed);
- }
- static void chisla(int kod = 65, int kol_vo = 80, int count = 0)
- {
- for (int i = 0; i <= kol_vo; i++)
- {
- Console.Write(Convert.ToChar(kod));
- }
- Console.WriteLine();
- if (count != 25)
- {
- chisla(kod + 1,kol_vo - 2, count + 1);
- }
- else if (kol_vo != 80)
- {
- chisla(kod - 1, kol_vo + 2, count);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement