Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- int stotici = int.Parse(Console.ReadLine());
- int desetici = int.Parse(Console.ReadLine());
- int edinici = int.Parse(Console.ReadLine());
- int number = stotici*100+desetici*10+edinici;
- for (int i = 100; i <= stotici*100+desetici*10+edinici; i++)
- {
- if ((number % 100) % 2 == 0 && (number / 100) % 2 == 0 && number - (number / 100 * 100) - number % 100 >= 2 && number - (number / 100 * 100) - number % 100 <= 7);
- {
- Console.WriteLine(i);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement