Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

prog.cs(2,18): error CS8025: Parsing error Compilation failed: 1 error(s), 0 warnings

$
0
0
namespace experiment
{
    class Program
    {
        static void Main(string[] args)
        {
            int t = int.Parse(Console.ReadLine());
            List<int> lines = new List<int>();
            for (int i = 0; i <t; i++)
            {
                lines.Add(int.Parse(Console.ReadLine()));
            }
            foreach (int x in lines)
            {
                int result=1;
                for (int i = x; i>=1; i--)
                {
                    result = result * i;
                }
                Console.WriteLine(result);
            }
            Console.ReadLine();
        }
    }
}

Hi i submitted my code but i keeps telling me error CS8025 Parsing error compilation failed. i don't understand what that means and by the way this was my solution for the small factorial problem


Viewing all articles
Browse latest Browse all 40121

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>