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 the following class definition.
erik [133]

Answer:

public int getX()

Explanation:

From the question, we understand that the value is to be accessed in other classes.

This implies that we make use of the public access modifier. Using the public modifier will let the instance variable be accessed from other classes.

Also, we understand the return type must be the variable type of x. x is defined as integer. So, the constructor becomes public x

Lastly, we include the constructor name; i.e. getX().

Hence, the constructor is: <em>public int getX()</em>

3 0
3 years ago
Another term for slow motion, where time appears to be moving slowly in a video is
deff fn [24]

Answer:

Slow motion (commonly abbreviated as slo-mo or slow-mo) is an effect in film-making whereby time appears to be slowed down. It was invented by the Austrian priest August Musger in the early 20th century.

Explanation:

The slow motion means the movement of object /body with respective to its surrounding but with a relative slower speed. The fast motion means the movement of object /body with respective to its surroundings but with relative greater speed.

4 0
4 years ago
What is the formula equivalent to the function =SUM(B1:B5)?
posledela
You have the correct answer selected!
6 0
4 years ago
Read 2 more answers
In Step 7, you listed three elements commonly listed in charts. What are all of those options?
devlian [24]
Common elements in charts, a data series, an x-axis, a y-axis, and
a legend
6 0
4 years ago
To enter a typed number into a cell, you press Tab or Backspace?​
muminat

Answer:

bOTH

Explanation:

7 0
4 years ago
Read 2 more answers
Other questions:
  • Universal Windows Platform is designed for which Windows 10 version?
    7·1 answer
  • Technician A says one disadvantage of fiber optic cables is that they are more expensive and very heavy. Technician B says one d
    6·1 answer
  • Write an overloaded constructor for the Table class that will take a single argument for the color of the table Write a set meth
    13·1 answer
  • which programming paradigm do programmers follow to write code for event driven applications? a. object oriented programming. b.
    9·1 answer
  • Make a program that prints each line of its input that mentions fred. (It shouldn’t do anything for other lines of input.) Does
    10·1 answer
  • You've just purchased 10 new notebook systems for your users. You are concerned that users will leave the systems on for long pe
    10·1 answer
  • Write a qbasic program to display integer numbers 1 to 100 using the for next loop<br>​
    9·1 answer
  • True/false
    8·1 answer
  • Which of the following is NOT a reason to include comments in programs
    10·2 answers
  • A device receives a data link frame with data and processes and removes the Ethernet information. What information would be the
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!