can anyone help explain how to do those programs below you don't have to write it out for me but iono, help me understand how
sorry i can't show you my code
for the first one i can get the squares and the cubes individually, they would list them all but how do i add them all up and have it like the example?
if you could help i will forever love youu
first program::
Write a function that adds up the squares and adds up the cubes of integers from 1 to n, where upper limit n is passed as an argument. Your function should only contain one loop only.
A sample run is shown.
Upper Limit: 5
The sum of Squares is: 55
The sum of Cubes is: 225
2nd ::
Write a function that takes a number n as an argument and writes out n rows of asterisks to the screen as shown below.
This sample output of the function occurs when n has the value 4.
****
***
**
*













