Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CAPP1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = 100;
- int b = 999;
- int x, y, z;
- int i = a;
- while (i <= b)
- {
- x = i % 10;
- y = (i % 100) / 10;
- z = i / 100;
- if (((x * y * z) % 2 == 0) && ((x * y * z) != 0))
- {
- Console.Write("{0} ",i );
- }
- i++;
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement