Ochkasty_Dino

Practicum3-IV-5

Sep 23rd, 2019
105
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp1
  8. {
  9.     class Program
  10.     {
  11.         static void Main()
  12.         {
  13.             Console.WriteLine("Please, enter the A = ");
  14.             int A = int.Parse(Console.ReadLine());
  15.             Console.WriteLine("Please, enter the B = ");
  16.             int B = int.Parse(Console.ReadLine());
  17.             Console.WriteLine("Please, enter the X = ");
  18.             int X = int.Parse(Console.ReadLine());
  19.             Console.WriteLine("Please, enter the Y = ");
  20.             int Y = int.Parse(Console.ReadLine());
  21.             while (A <= B)
  22.             {
  23.                 if (A%10 ==X || A%10 == Y)
  24.                     Console.Write("{0} ",A);
  25.                 A++;
  26.             }
  27.         }
  28.     }
  29. }
RAW Paste Data