fi Home e Content zy Section 4.15 - DAT 210: Data Pro X c lle Bython Chaleton Pecal x + . : = zyBooks My library > DAT 210: Data Programming Languages home > 4.15: LAD: Hailstone sequence 5 Books catalog Help/FAQ A Ryan Wilson - 4.15 LAB: Hailstone sequence Given a positive integer n, the following rules will always create a sequence that ends with 1 caled the hailstone sequence .ifnis even, divide it by 2 • It n is odd multiply it by 3 and add 1 (1. 3n+1) - . Continue until nis 1 Wnte a program that reads an integer as input and points the hailstone sequence starting with the integer entered. Format the output so that ten integers, each separated by a tab character t), are printed per line. The output format can be achieved as follows: printin, endet Ex: If the input is 25 the outputis 39 11 SU 13 19 24 1 40 10 22 5 17 40 20 52 2 16 381271119390 LAR ACTIVT 4.15.1: LAB Hailstone sequence : : 0/10 main.py Land default template 1 Type your code