Question: 1 - Write a program using for loop to find the square of numbers from 1 - 1 0 . Hint: The operator for square

1-Write a program using for loop to find the square of numbers from 1-10.
Hint: The operator for square is **
Sample Output:
number square
========================
11
24
39
416
525
636
749
864
981
10100
2- Write a program using for loop to find the total sum of numbers 1-20. Use accumulation concept.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!