Messages, C#
Здравейте, дава ми 60/100, а не мога да си открия грешката. Благодаря предварително!
using System;
namespace Messages
{
class Program
{
static void Main(string[] args)
{
int countOfNumbers = int.Parse(Console.ReadLine());
string word = "";
for (int i = 0; i < countOfNumbers; i++)
{
int number = int.Parse(Console.ReadLine());
if (number == 2)
{
word += "a";
}
else if (number == 22)
{
word += "b";
}
else if (number == 222)
{
word += "c";
}
else if (number == 3)
{
word += "c";
}
else if (number == 33)
{
word += "e";
}
else if (number == 333)
{
word += "f";
}
else if (number == 4)
{
word += "g";
}
else if (number == 44)
{
word += "h";
}
else if (number == 444)
{
word += "i";
}
else if (number == 5)
{
word += "j";
}
else if (number == 55)
{
word += "k";
}
else if (number == 555)
{
word += "l";
}
else if (number == 6)
{
word += "m";
}
else if (number == 66)
{
word += "n";
}
else if (number == 666)
{
word += "o";
}
else if (number == 7)
{
word += "p";
}
else if (number == 77)
{
word += "q";
}
else if (number == 777)
{
word += "r";
}
else if (number == 7777)
{
word += "s";
}
else if (number == 8)
{
word += "t";
}
else if (number == 88)
{
word += "u";
}
else if (number == 888)
{
word += "v";
}
else if (number == 9)
{
word += "w";
}
else if (number == 99)
{
word += "x";
}
else if (number == 999)
{
word += "y";
}
else if (number == 9999)
{
word += "z";
}
else if (number == 0)
{
word += " ";
}
}
Console.WriteLine(word);
}
}
}