Write a program to read a number n and print nạ, nº and nº.
Answers
Answered by
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
Social Sciences,
4 months ago
English,
4 months ago
Political Science,
4 months ago
Math,
9 months ago
Science,
9 months ago
English,
1 year ago
Physics,
1 year ago