Daily Learning | Basic C Language Training

Daily Learning | Basic C Language Training

Problem: A ball falls freely from a height of 100 meters, and after each landing, it rebounds to half of its original height; after falling again, how many meters has it traveled by the 10th landing? How high is the 10th rebound? NEXT Solution 1: #include<stdio.h>#defineINITIAL_HEIGHT100.0#defineBOUNCE_COUNT10intmain(){ doubleh = INITIAL_HEIGHT; doubles = INITIAL_HEIGHT; // Height of … Read more