Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- for(char A = (char)a; A <= 'z' ; A++)
- {
- for(char B = (char)b; B <= 'z' ; B++)
- {
- for(int x = 1; x <=9; x++)
- {
- for(int y = 1; y <=9; y++)
- {
- if(x + y == 9 && B > A)
- {
- Console.Write("{0}{1}{2}{3} ", A, B, x, y );
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement