Question: I have installed swift3 on my ubuntu machine and when i try to execute any swift code it is giving an error Segmentation fault (core dumped), can anyone tell me what this issue is and how to fix.

Thanks.
Prabu Dass R.

Answer: 
You could use [`Math.Max`](https://msdn.microsoft.com/de-de/library/cs0a3045(v=vs.110).aspx) for that:

```
parameter1inItemsStruct = Math.Max(0, x.intno1),
parameter1inItemsStruct = Math.Max(0, x.intno2)

```
Use [**?: Operator**](https://msdn.microsoft.com/en-us/library/ty67wk28.aspx) 

```
{
    parameter1inItemsStruct = x.intno1 > 0 ? x.intro1 : 0,
    parameter1inItemsStruct = x.intno2 > 0 ? x.intro2 : 0

}

```