Practice » Apples and Oranges C#

What is the difference in the following 2 codes. Why/When can the first one fail?
int money = int.Parse(Console.ReadLine());
string[] prices = Console.ReadLine().Split(’ ');
int price = int.Parse(prices[0]) + int.Parse(prices[1]);
failed:
string value = (money - price) > 0 ? “yes” : “no”;
Console.WriteLine(value);
passed:
if (money<price)
Console.WriteLine(“No”);
else
Console.WriteLine(“Yes”);