0

Friends Can you tell me whats wrong with this cod? I solve this cod coach but still test 3 and 4 dont accept it!!

static void Main(string[] args) { //this is Code Coach of C# //with HoverCraft factory int Cost = 21000000; int Sell = Convert.ToInt32(Console.ReadLine()); int InCome = (Sell * 3000000) - Cost; if (InCome < 0) Console.WriteLine("Lose"); else if (InCome == 0) Console.WriteLine("Broke Even"); else Console.WriteLine("Profit"); }

7th Jun 2021, 4:52 PM
Kouros pourmohseni
Kouros pourmohseni - avatar
3 Answers
+ 9
It's `Loss` not Lose
7th Jun 2021, 5:13 PM
Simba
Simba - avatar
+ 1
Tnx
7th Jun 2021, 7:05 PM
Kouros pourmohseni
Kouros pourmohseni - avatar
0
Omg how can i miss that 😂😂😂😂😂😂
7th Jun 2021, 7:05 PM
Kouros pourmohseni
Kouros pourmohseni - avatar