Advertisement
RukoLob

1.3.8.3

Aug 17th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.94 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7.  
  8. namespace hw
  9.  
  10. {
  11.     class Program
  12.     {
  13.         static void Main(string[] args)
  14.         {
  15.             int dr = Convert.ToInt32(Console.ReadLine());
  16.             for (int i = 0; i < dr; i++)
  17.             {
  18.                 Console.WriteLine(i + " " + "Итераций");    //Лучше всего использовать для перебора чего либо с известным колличествои итераций
  19.             }
  20.         }
  21.     }
  22. }
  23.  
  24. namespace hw
  25.  
  26. {
  27.     class Program
  28.     {
  29.         static void Main(string[] args)
  30.         {
  31.             string i = Console.ReadLine();
  32.             while (i != "1234")
  33.             {
  34.                 i = Console.ReadLine();    //While лучше всего выполняет операцию до результата.
  35.             }
  36.         }
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement