I can't complete running my program
Posted: Thu Dec 14, 2017 6:34 pm
When I run my C# program inside Zeus only the beginning part of the program runs fine. But when I press the Enter key to run the rest of the code Zeus freezes and does not respond.
Let me explain:
Here is my program:
using System;
class GetInteger
{
static void Main()
{
int x;
Console.Write("Enter a value for x: ");
x = Convert.ToInt32(Console.ReadLine());
Console.Write("Okay you entered " + x)
}
}
The problem is after I enter a value for x and then hit Enter, the program stops running. It freezes. I see an hourglass that just sits there.
Let me explain:
Here is my program:
using System;
class GetInteger
{
static void Main()
{
int x;
Console.Write("Enter a value for x: ");
x = Convert.ToInt32(Console.ReadLine());
Console.Write("Okay you entered " + x)
}
}
The problem is after I enter a value for x and then hit Enter, the program stops running. It freezes. I see an hourglass that just sits there.