Math, asked by jubleesahoo84, 9 months ago


Write a program to read a number n and print nạ, nº and nº.

Answers

Answered by ratanhantal81
1

Answer:

1. Take a value from the user and store it in a variable n.

2. Use two for loop where the value of j ranges between the values of 1 and n and value of i ranges between 1 and j.

3. Print the value of i and ‘+’ operator while appending the value of i to a list.

4. Then find the sum of elements in the list.

5. Print ‘=’ followed by the total sum.

6. Exit.

Step-by-step explanation:

hope it helps you be safe mark me as brainlist pls pls

Similar questions