Heya, i'm a pure swedish beginner at programming. I have certain difficulties to get a program working involving conditional operators/statements.
The task is following:
In order for a declaration relief from double residence requires that the distance to work is more than 50 km and that the work lasts more than a year for singles and 3 years for cohabitant. Construct a program that allows the user to input the data and that informs whether the user has the right to tax or not.

This might seem like a really easy program to construct but everyone has been beginners at some time. I would really appreciate if anyone could help me out here.

I've made some minor pseducode on paper, although it hardly helps me with the the encoding

best regards
Emil