Answer:
# main function is defined
# the calculateAmount is called here
def main():
print("The new amount is: ", calculateAmount(), sep="")
# calculateAmount function that calculate the interest
def calculateAmount():
# the value of principal is p
p = 5000
# the value of rate is r
r= 2
# the time is t
t = 1
# the formula for finding interest
interest = (p * r * t) / 100
# the new amount is calculated
amount = p + interest
# the amount is returned
return amount
# a call that make main function begin execution
if __name__ == "__main__":
main()
Explanation:
The program is written in Python and it is well commented. A screenshot is attached showing program output
hola no conozco el toldo, pero necesito puntos cerebrales tan lo siento
Explanation:
Answer:
1000 500 250 125 the output
Explanation:
write a program using integers userNum and x as input, userNum divided by
x four times. EX : If the input is 2000 2 the output is 1000 500 250 125
Answer
<u>Defination</u><u>-</u><u>:</u>
A control statement is a statement and a statement whose execution its control.
<u>Types-:</u>
- Selection Statement
- Iteration Statement
- Unconditional branching Statement
A biography page that tells about the person and has their expertise listed as well as contact information and sometimes previews