Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- class Program
- {
- static void Main()
- {
- for (int i = 0; i <= 10000; i++)
- {
- int input = int.Parse(Console.ReadLine());
- int a = input % 10;
- int aOne = input / 10;
- int b = aOne % 10;
- int c = aOne / 10;
- int sum = 0;
- bool ballanced = ((a + c) == b);
- if (ballanced)
- {
- while (ballanced)
- { sum += input; break; }
- }
- else { break; }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement