Answer:
<em>Written in Python</em>
def SumN(n):
total = 0
for i in range(1,n+1):
total = total + i
print("Total: ",total)
def SumNCubes(n):
total = 0
for i in range(1,n+1):
total = total + i**3
print("Cube: ",total)
n = int(input("User Input: "))
if n > 0:
SumN(n)
SumNCubes(n)
Explanation:
The SumN function is defined here
def SumN(n):
This line initializes the total to 0
total = 0
The following iteration compute the required sum
<em> for i in range(1,n+1):
</em>
<em> total = total + i
</em>
This line outputs the calculated sum
print("Total: ",total)
The SumNCubes function is defined here
def SumNCubes(n):
This line initializes the total to 0
total = 0
The following iteration compute the required sum of cubes
<em> for i in range(1,n+1):
</em>
<em> total = total + i**3
</em>
This line outputs the calculated sum of cubes
print("Cube: ",total)
The main starts here; The first line prompts user for input
n = int(input("User Input: "))
The next line checks if input is greater than 0; If yes, the two defined functions are called
if n > 0:
SumN(n)
SumNCubes(n)
Answer:
The answer 1 is correct.
Explanation:
When a junction called the p-n is forward biased, the capacitance of diffusion will form or structured across depletion layers.
When at a higher frequency or frequencies, the dopants, are vibrated across the metallurgical junction and the doping profiles smooths out.
Técnicas y materiales de escultura
Modelado de arcilla. Clay tiene muchas ventajas para un artista. ...
Modelado de cera. El modelado con cera permite a un artista crear un diseño único. ...
Esculpir. ...
Talla de madera. ...
Talla de marfil. ...
Piedras semipreciosas y tallas de conchas. ...
Fundición de bronce. ...
Decoración.
Corrígeme si estoy equivocada.. :)
Hey! How are you? My name is Maria, 19 years old. Yesterday broke up with a guy, looking for casual sex.
Write me here and I will give you my phone number - *pofsex.com*
My nickname - Lovely