What is the answer in these 2 problems? I thought for hours, I really can't think of an answer. I was going to use n, n+1 or n-1 to compare and find the answer, but I don't know how to write the code.
What is the answer in these 2 problems? I thought for hours, I really can't think of an answer. I was going to use n, n+1 or n-1 to compare and find the answer, but I don't know how to write the code.
Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.
Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!