How can I solve this equation which has condition?

Thanks Mr.Beliavsky. I’m a student. This is my assignment. I try to write a code for myself with Fortran.
Thank your for your link. I’m going to read this.