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
Scrat [10]
3 years ago
14

Help me..and thank you​

Computers and Technology
1 answer:
kotykmax [81]3 years ago
7 0

Answer:

#include <stdio.h>

void spaces(int n) {

 for(int i=0; i<n; i++) {

   putchar(' ');

 }

}

void numbersdown(int n) {

 for(int i=n; i>1; i--) {

   putchar('0'+i);

 }

}

void numbersup(int n) {

 for(int i=1; i<=n; i++) {

   putchar('0'+i);

 }

 putchar('\n');

}

int main(void) {

 int number;

 printf("Please enter a digit: ");

 scanf("%d", &number);

 for(int i=number; i>0; i--)

 {

   spaces(number-i);

   numbersdown(i);  

   numbersup(i);    

 }

}

Explanation:

I deliberately separated the solution into different functions for readability. If needed, the code could be made much more compact.

You might be interested in
consider a pipelined risc cpu with 14 stages. what is maximum speedup of this cpu over a non-pipelined implementation?
Galina-37 [17]

The maximum speedup of this cpu over a non-pipelined implementation is 14.

What do you mean by cpu?

A central processing unit (CPU), often known as a central processor, main processor, or simply processor, is the electrical circuitry that processes computer programme instructions. The CPU executes basic arithmetic, logic, controlling, and input/output (I/O) operations provided by programme instructions. This is in contrast to external components like main memory and I/O circuits, as well as specialised processors like graphics processing units (GPUs).

In general, however, a 14-stage pipeline can provide a significant speedup over a non-pipelined design, potentially up to several orders of magnitude.

To learn more about cpu

brainly.com/question/4558917

#SPJ4

6 0
1 year ago
How do you start using the Internet?
fgiga [73]

Answer:

it's

D. open web browser

3 0
3 years ago
Read 2 more answers
An employee was watching Jessica, an IT employee, typing in many different confusing terms. Jessica explained that she needed to
zzz [600]

Answer:

Programming and Software Development

Explanation:

8 0
3 years ago
Read 2 more answers
Discussed the economic and ideological cause of Americans, French and Chinese revolution​
alexgriva [62]

Answer:

The social, political, and economic causes of the American Revolution inevitably helped shape the country we live in today. A social cause that occurred was the disagreement between America and Britain and how poorly they were treated. A political cause that occurred was the implantation of legislatures on the colonies

Explanation:

5 0
3 years ago
When you code a column list in an INSERT statement, you can omit columns with default values and columns that allow ____________
stiks02 [169]

Answer:

NULL is the correct answer of this question.

Explanation:

The insert statement is used for inserting a column list into the database this statement is an under Data Manipulation language.When we insert any column into the database there is always a null value stored.

  • Insert statement is used to insert the data into the database .
  • To insert data following syntax is used:-

         insert into tablename (column data type).

  • When we insert any data into the database the default value is stored is bull.
6 0
4 years ago
Other questions:
  • explain why electronic file organization is a key skill for today’s workplace. You may use a scenario from your current and/or f
    8·1 answer
  • A Windows systems administrator should use the Administrator account ________.a. As little as possible, and only when needed b.
    15·1 answer
  • What could be one possible reason where the recipient is not guaranteed that the data being streamed will not get interrupted?
    15·1 answer
  • Use the __________ property to configure bold text using css
    7·1 answer
  • Which of the following describe design themes in PowerPoint? Choose all that apply.
    10·1 answer
  • What is ur favorite color and why
    9·2 answers
  • This zyLab activity prepares a student for a full programming assignment. Warm up exercises are typically simpler and worth fewe
    8·1 answer
  • In which of the following cases is the application of a nested loop not justified? When comparing two lists of integers When for
    14·1 answer
  • What is the most important person and why
    10·1 answer
  • How many bits strings of length 12 contain (8 pts)? a. exactly three 1s? b. at most three 1s? c. at least three 1s? d. an equal
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!