Question: Write a program that uses a for loop. With the loop, make the variable x go from -10 to 10, counting by 0.5. (This means
Write a program that uses a for loop. With the loop, make the variable x go from -10 to 10, counting by 0.5. (This means that x can't be an int.) Inside the body of the loop, make another variable y become the current value of x squared. Then display the current values of both x and y.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
