Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace PMPHF007_P99J7Y
- {
- internal class PMPHF007_P99J7Y
- {
- static void Main(string[] args)
- {
- string s = Console.ReadLine();
- int[] b = new int[s.Length / 2];
- int index = 0;
- for (int i = 0; i < s.Length; i += 2)
- {
- string eleje = s.Substring(i, 2);
- int kettesszamok = int.Parse(eleje);
- b[index] = kettesszamok;
- index++;
- }
- Console.Clear();
- for (int i = 0; i < b.Length; i++)
- {
- if (b[i] >= 0 && b[i] <= 8)
- {
- Console.Write(0);
- }
- else if (b[i] >= 27 && b[i] <= 50)
- {
- Console.Write(1);
- }
- else { Console.Write('E'); }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment