1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Makovka662 [10]
2 years ago
10

Create a program that prompts the user for a positive integer then prints a right-aligned pyramid using that number using the st

ructure below
Here are some examples:

> Enter an integer between 1 and 5: 2
1
2 3
> Enter an integer between 1 and 5: 5
1
2 3
3 4 5
4 5 6 7
5 6 7 8 9

> Enter an integer between 1 and 5: -3.4
That's not an integer between 1 and 5.
Computers and Technology
1 answer:
Makovka662 [10]2 years ago
3 0

Below is the program that prompts the user for a positive integer then prints a right-aligned pyramid in python programming language.

rows = int(input("Enter number of rows: "))  

for i1 in range(1, rows):  

   for j1 in range(1, i1 + 1):  

       # This prints multiplication / row-column  

       print(i1 * j1, end='  ')  

   print()  

What is Python in programming?

Python is a interpreted, high-level programming, object-oriented, language with a dynamic semantics. Its high-level built-in data structures, combined with dynamic typing and dynamic binding, make it very appealing for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together.

Python's simple, easy-to-learn syntax emphasizes readability, lowering the cost of program maintenance. Python also supports modules as well as packages, which promotes program's modularity and reuse of code. The Python interpreter and extensive standard library are freely distributable and available in source or binary form for all major platforms.

To learn more about Python, visit: brainly.com/question/28379867

#SPJ1

You might be interested in
Hi, please help me.solution.​
Fed [463]

Answer:

aahdbdnsjajaissjdjdhskakwjdhbebs

3 0
3 years ago
Mrs. Zoo gave out the rubric for our essay. She stated that our essay should be complete by Friday of that week. I didn't have t
Rom4ik [11]

Answer:

No

Explanation:

You had the whole week for the essay but didn't do it and then turned it in late.

6 0
3 years ago
What is the meaning for science?
ELEN [110]
Science is the special kind of knowledge.Science is the special kind of knowledge related to nature and natural phenomena.
5 0
3 years ago
Which section of a personal narrative requires the most development
attashe74 [19]
D. Plot because a,b,and c is consider plot can i have brainlest answer please

5 0
4 years ago
Lindsey also needs to calcite the commissions earned each month. If the company earns $200,000 or more in a month, the commissio
IrinaK [193]

Answer:

srry dont know

Explanation:

8 0
3 years ago
Other questions:
  • Which spreadsheet operation does a look function perform?
    5·1 answer
  • "Common knowledge" must always be credited or else it is considered plagiarism?<br> True<br> Fales
    5·1 answer
  • Jenny needs to record the names of 30 students, write down the subjects they studied, and note grades in each subject after the
    13·2 answers
  • Which resource hels a user access a could service​
    12·1 answer
  • The at command is used to _______________.
    15·1 answer
  • How is communication within healthcare different than communication within other industries ?
    13·1 answer
  • Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
    7·1 answer
  • What is the name of tool in number 9 picture? CAPITAL LETTER ONLY
    5·1 answer
  • Can someone help me explain Nvm scheduling in operating systems?
    9·1 answer
  • Which html tag designates links to other web pages?.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!