+ 1
What is wrong with my code?
static void Main(string[] args) { int pass=100; if (pass>=50) { Console.Writeline("you pass"); if (pass==100) { Console.WriteLine("perfect"); } } else { Console.WriteLine("fail"); } } } }
2 Answers
0
those are for the rest of the code. here's the full
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
{
class Program
{
static void Main(string[] args)
{
int pass=100;
if (pass>=50)
{
Console.Writeline("you pass");
}
if (pass==100)
{
Console.WriteLine("perfect");
}
else
{
Console.WriteLine("fail");
}
}
}
}