Not sure what you want to achieve, but it seems you want to "translate" your code do lambda...
int i = a==null ? 0 : 10;
if (i == 0)
Console.WriteLine("Please enter any number!");
Note: your code has no sense, becuase you loose original value of a
when it stores not null
value.