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
Nataly [62]
3 years ago
10

Assume that the int variables i and j have been declared, and that n has been declared and initialized.

Computers and Technology
1 answer:
Sonja [21]3 years ago
6 0

Answer:

The code to this question can be given as:

code:

for(i=1;i<=n;i++)   //for loop column

{

for(j=1;j<=i;j++)       //for loop for rows

{

printf("*");         // print asterisks

}

printf("\n");     //line break

}

Explanation:

We know that variable i,j, and n is already declared and n variable has initialized a value. So, we write the code that is given above. In this code, we use a nested loop. In this code, we use two loops that are a loop (i)for column and j loop for rows. for print asterisks triangle we use two for loop. For that, we use two-variable (i,j) that is already declared. We assign the value in (i) loop that is 0 and checks that (i) is less than equal to n and increment of (i) by 1. In this loop, we use another loop that is (j) loop. It also starts from 1 and checks that (j) is less than equal to (i)and increment of (j) by 1. In that loop, we print asterisks end of (j) loop. In (i) loop we use ("\n") for line break end of (i) loop.

You might be interested in
What is radio frequency identification used for
Sauron [17]

Answer:

Radio-frequency identification (RFID) uses electromagnetic fields to automatically identify and track tags attached to objects. An RFID tag consists of a tiny radio transponder; a radio receiver and transmitter.

Radio Frequency Identification (RFID) is a technology designed to allow objects, animals and even human beings to be identified, located, and tracked using radio frequency signals.

8 0
3 years ago
PLEASE HELP I WILL MEDAL AND FAN!
ladessa [460]
Hi!

Question 1: George W. Bush.

Question 2: I'm pretty sure it's excessive use of force.

Question 3: About 25 percent.

Question 4: True.

Question 5: To ensure the safety of officers and inmates and to punish those who break the rules.

Question 6: I believe it is false.

Question 7: True.

Question 12: John F. Kennedy.

Question 13: I believe it's False.

Question 15: False.

That's all I know!
4 0
3 years ago
Read 2 more answers
Suppose a variable is passed By Value to a parameter of a Sub procedure, and the parameter has its value changed inside the Sub
algol [13]

Answer:

"The value of the variable will remain the same which is already have when the sub-processor is called".

Explanation:

The above question said that:-

void fun(int a)

{

  a=a+1;

}

void main()

{

  int a=5;

  fun(a);

}

//what will be the value of a in the main function after the fun function is excuted.

  • Then the answer is: the value of a will be 5 in the main function.
  • It is because when the fun function is called, then a variable that is defined in the fun function is a local variable for fun function. That scope after the fun function is null.
  • The a variable inside the fun function is a different variable and the main function a variable is also a different variable.
  • So when the user prints the value of a variable inside the fun function, it will give the result as 6.
  • But when he prints the value of a variable inside the main function, then it will give the value as 5.
4 0
3 years ago
Who Plays Rainbow six siege
vekshin1
What’s that? I never heard of it.
4 0
3 years ago
Read 2 more answers
A cubic inch is equivalent to which of the following values?
nydimaria [60]

Answer:

C. 16.387

Explanation:

8 0
2 years ago
Other questions:
  • A disadvantage of ethernet??
    6·1 answer
  • Which of the following is a professional organization in the field of IT? Society for the Prevention of Cruelty to Animals (SPCA
    6·2 answers
  • Assume the existence of a Bank Account class. Define a subclass, Savings Account that contains the following: a double instance
    5·1 answer
  • #Create a class called Name. Name should have two attributes
    11·1 answer
  • In the ADT graph the methid addVertex has efficiency
    15·1 answer
  • Which command is not one of the available Change Case options?
    8·1 answer
  • true or false if you type too much text on a powerpoint slide, the additional text is added to a second slide
    12·2 answers
  • When a computer or digital device is used as a storage device or in the facilitation of an offense, it is argued to be ____ to t
    14·1 answer
  • Which tools is used to bundle cables neatly inside and outside of a computer?​
    15·1 answer
  • Ayúdenme porfa se los agradecería :c
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!