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
Fourlotts Corp. provide integrated services that include storing manufactured goods, packaging, and delivering it to the dealers
PilotLPTM [1.2K]

Answer:

The answer is "Logistics provider of third parties".

Explanation:

In the given statement some information is missing, that is options, which can be described as follows:

a.Center for Allocation

b. Logistics provider of third parties

c. supplier

d. Manufacturer with contracts

The company provides contracted logistics facilities provided by any part of the sourcing and distribution operations. In the 3PL will have a specific definition for any service agreement requiring processing or shipment of goods, and certain choices were wrong, which can be explained as follows:

  • In option a, It includes products and services.
  • In option b, It is a person that provides the products.
  • In option d, It enables the customer to get off an incredibly important project, that saves a lot of cash.

7 0
3 years ago
Things stored in a computer ram __________.
kirza4 [7]
B.cannot be accessed from the GUI
8 0
3 years ago
Write a program that assigns a value the value of 50000 to an integer variable x, assigns the value of x*x to an integer variabl
Allushta [10]

Answer:

Explanation:

The following code is written in Java and does exactly what the question asks. The variables are long variables instead of integers because integer variables can only be a maximum of 2147483647 and the product of these two variables is much higher than that.

public static void main(String args[]) {

               long x = 50000;

               long y = x * x;

               System.out.println(y);

       }

7 0
3 years ago
To delete text to the right of the cursor, press the____ key.
KiRa [710]
You would press the backspace key
3 0
4 years ago
Read 2 more answers
Users can customize sparklines In Excel 2016 using which items? Choose two answers Here are the possible answers: Location , sty
andriy [413]

formula and styles maybe

4 0
3 years ago
Other questions:
  • 20 points fun challenge!!! Can u solve this challenge? Find the only spelled out word in this jumble of letters, there is only o
    6·2 answers
  • Mrs. Sims polled her students about which social media app they use most. Which type of chart would best display this data?
    9·2 answers
  • _____ memory is a limited-capacity memory system in which information is usually retained for less than a minute unless strategi
    7·1 answer
  • Choose all of the items that represent operating systems largely derived from UNIX. GNU/Linux, Mac OS X, IBM, OS/360, BSD, Windo
    12·2 answers
  • How does join work? a. You write separator.join('a', 'b', 'c', 'd', ...) where 'a', 'b', 'c', 'd' can be replaced with other str
    8·1 answer
  • Events and conditions that happen within an organization that are somewhat easier to deal with when responding to change are cal
    11·1 answer
  • PLEASE ANSWER
    9·1 answer
  • When you open your word-processing program, it opens in a<br> field<br> menu
    9·2 answers
  • Hannah wants to write a book about how scientists and society interact, and she has generated ideas for chapters. Which chapter
    13·1 answer
  • You’ve been given a new cell phone with a 2 gigabyte data plan. You plan to use your phone for text messages, images, video, and
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!