Help with some programming!!

And I am new to arduino and this forum so sorry for those attachment/indentation etc etc issues