# Find a prime number DEF zhishu (n-): IF n-<= 2: return False IF n-% 2 == 0: return True return True for n-in Range (1,100): IF zhishu (n-): Print (n-, End = " ') ' '' topics: a ball free fall from a height of 100 meters, after each landing jumps back half of the original height of the anti-; down again, find it at the 10th floor, after a total of how many meters? 10th rebound tall? '' ' S = 100 L = 0 for I in Range (1,11): A = S / (I 2 **) Print (A) L A = L + 2 * IF I == 10: B = A n- L = - B +100 Print (n-)
& Ball falling from the prime ten times one hundred meters
Guess you like
Origin www.cnblogs.com/libragyf/p/12070380.html
Recommended
Ranking