program for flyods triangle