commiting my conditional

fixing the coditional adding a ternary
commiting function personal

i made a average calculator