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
Ad libitum [116K]
2 years ago
8

Print numbers 0, 1, 2, ..., userNum as shown, with each number indented by that number of spaces. For each printed line, print t

he leading spaces, then the number, and then a newline. Hint: Use i and j as loop variables (initialize i and j explicitly). Note: Avoid any other spaces like spaces after the printed number. Ex: userNum = 3 prints:
0
1
2
3
(each number is one tab over from the last but formatting on Brainly wont allow that)


#include


int main(void) {

int userNum;

int i;

int j;


scanf("%d", &userNum);


/* Your solution goes here */


return 0;

}
Computers and Technology
1 answer:
geniusboy [140]2 years ago
8 0

Answer:

Please find the answer below

Explanation:

// Online C compiler to run C program online

#include <stdio.h>

int main() {

   // Write C code here

   //printf("Hello world");

   int userNum;

   int i;

   int j;

   

   scanf("%d", &userNum);

   /* Your solution goes here */

   for(i = 0; i<=userNum; i++){

       for(j = 0; j <= i; j++){

           printf(" ");

       }

       printf("%d\n", i);

   }

   return 0;

}

You might be interested in
Organizations can face criminal or civil penalties for being ______ in protecting their sensitive data.
MakcuM [25]
The answer to this question is A. hope this helped thanks.
6 0
3 years ago
Read 2 more answers
I need someone who knows HTML to finish the code.
Maksim231197 [3]
I recommend you go to Stacks Overflow . There are many experienced coders there that would gladly answer your question.
7 0
4 years ago
Read 2 more answers
3. State whether the given statements are true or false. a. The computer is called a data processor because it can store, proces
andriy [413]

Answer:

a,b,c,d,f,g are true only e is false

6 0
3 years ago
Hannah weighs 210 pounds using the English System of measurement. If we convert her weight to the Metric System, she would weigh
tatyana61 [14]

Answer:

Check the explanation

Explanation:

C++ PROGRAM

#include <iostream>

using namespace std;

int main()

{

float pounds;

float kilograms;

cout<<"Please enter the weight in pounds :";

cin>>pounds;

kilograms=pounds*0.454;

cout<<"The weight in Kilogram is:"<<kilograms<<"kilograms";

return 0;

}

Kindly check the attached image below for the code output.

3 0
3 years ago
Which of the following best describes the purpose of an Egyptian pyramid?
Flura [38]

Answer:

C

Explanation:

Had this on edgnuity

Please give a brainliest

7 0
3 years ago
Read 2 more answers
Other questions:
  • What company was credited with developing the first smartphone?
    6·2 answers
  • What is the area of a triangle whose base is 14 m and whose height is 22 m?
    7·1 answer
  • • The length of time between water level measurements/ control adjustments is DT. • If the water level drops to the bottom of th
    13·1 answer
  • Given the following function definition, what modifications need to be made to the search function so that it finds all occurren
    7·1 answer
  • How many of yall are willing too sub to my channel called "Space Juice" with around 200 subs?!​
    14·1 answer
  • A carver begins work on the following block of granite that weighs 2700 g. What is the density of the granite?
    13·1 answer
  • What is NOT a built-in function in python?<br> sqrt()<br> string()<br> fabs()<br> O print()
    12·2 answers
  • Makayla is cre iting a brochure for her computer consulting company. She designed the layout and placed a banner containing the
    6·1 answer
  • Un polímero sintético es renovable o no renovable
    11·1 answer
  • WHAT ACTIONS CAUSE SPAM ON LINKEDIN?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!