Advertisement
Goldobin

Untitled

Aug 18th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ForLesson15
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int counter = 0;
  10.             for (int i = 0; i < 5; i++)
  11.             {
  12.                 if (i < 5)
  13.                 {
  14.                     i++;
  15.                 }
  16.                 if (i < 0)
  17.                 {
  18.                     i -= 2;
  19.                 }
  20.  
  21.                 Console.WriteLine("Уииииии..." + counter);
  22.                 counter++;
  23.             }
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement