C#C
C#3y ago
63 replies
js

program closing early

Console.WriteLine("What was the digital portfolio mark (out of 35)?");
int dpMark = int.Parse(Console.ReadLine());
if(dpMark < 0 && dpMark > 35)
{
    Console.WriteLine("hello");
}
else
{
    Console.WriteLine(dpMark," is not a valid mark for the digital portfolio");
}

when i try to run my code the program exits after line 1?
image.png
Was this page helpful?