The program is to print a floyd's triangle(right angled triangular pattern with natural numbers) but the alternate rows should have the numbers in reverse ie In the second row 2 3 should become 3 2 The fourth row will have 10 9 8 7 instead of 7 8 9 10. The odd rows will have the numbers printed in the expected order only . please help
Aucun commentaire:
Enregistrer un commentaire