Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- for(int y = 0; y < 10; y++)
- {
- string message = "";
- for(int x = 0; x < 10; x++)
- {
- int rightX = 9 - x;
- int rightY = 9 - y;
- if(rightX > x)
- {
- rightX = x;
- }
- if(rightY > y)
- {
- rightY = y;
- }
- if(rightX > rightY)
- {
- message += rightY;
- }
- else
- {
- message += rightX;
- }
- }
- Console.WriteLine(message);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement