Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Tom recorded each day's results in a new line representing each day he has done pull-ups. Create a program that calculates the results. Tom has
Tom recorded each day's results in a new line representing each day he has done pull-ups. Create a program that calculates the results. Tom has done pull-ups every day and recorded his results. He recorded each day's results in a new line so that each line represents each day he has done pull-ups. Create a program that takes n number as input and outputs the n-th days' result (starting from 0). Sample Input 4 Sample Output Day 4, 9 pull-ups
Day 0, 8 pull ups Day 1, 8 pull ups Day 2, 9 pull ups Day 3, 9 pull ups Day 4, 9 pull ups Day 5, 10 pull ups Day 6, 10 pull ups Day 7, 10 pull ups Day 8, 10 pull ups Day 9, 11 pull ups Day 10, 11 pull ups Day 11, 11 pull ups Day 12, 11 pull ups Day 13, 12 pull ups
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started