Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. using System;
  2.  
  3. namespace CAPP1
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int a = 100;
  10.             int b = 999;
  11.             int x, y, z;
  12.             int i = a;
  13.             while (i <= b)
  14.             {
  15.                 x = i % 10;
  16.                 y = (i % 100) / 10;
  17.                 z = i / 100;
  18.                 if (((x * y * z) % 2 == 0) && ((x * y * z) != 0))
  19.                 {
  20.                     Console.Write("{0}  ",i );
  21.                 }
  22.                 i++;
  23.             }
  24.             Console.ReadKey();
  25.         }
  26.  
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement