Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. (20 points) Using while loop, write a C program that prints Fibonacci series up to 100 2. (20 points) Define a function called hypotenuse
1. (20 points) Using while loop, write a C program that prints Fibonacci series up to 100 2. (20 points) Define a function called hypotenuse that calculates the length of the hypotenuse of a right triangle when the other two sides are given. The function should take two arguments of type double and the hypotenuse as a double. You can use only sqrt() math library function. Test your program with the side values specified in the following Table: Triangle Side 1 Side 2 3.0 4.0 2 5.0 12.0 3 8.0 15.0 1 Sample Output: Enter Side 1: 3.0 Enter Side 2: 4.0 The hypotenuse is 5.0
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