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
mojhsa [17]
2 years ago
12

This is for C++: Using a nested for loop output the following pattern to the screen:

Computers and Technology
1 answer:
olga55 [171]2 years ago
3 0

Answer:

Following are the code to the given question:

#include <iostream>//header file

using namespace std;

int main()//main method

{

int r=26,x,y;//defining integer variable  

char c;//defining a character variable

for(x= 1; y<= r; x++)//using for loop for count value

{

for(y= 1; y<= x; y++)//using for loop to convert value in triangle  

{

c=(char)(y+64);//convert value into character  

cout << c;//print character value

}

cout << "\n";//use print method for line break

}

return 0;

}

Output:

Please find the attachment file.

Explanation:

In this code, three integer variable "x,y, and r", and one character variable "c" is declared, that is used in the nested for loop,  in the first for loop it counts the character value and in the next for loop, it converts the value into a triangle and uses the char variable to print its character value.

You might be interested in
Meenakshi has created a presentation of six slides. The slides have the same background, but s wants to change the background of
sdas [7]
Ans:- Using Background Styles button present in Background group on the Design tab.
5 0
2 years ago
Florescent lights tend to emit less of what color?
Olin [163]
I believe it emits more yellow, it can even be blue or green 
4 0
3 years ago
Who knows my sister better?
Delvig [45]

Answer:

She is 17 her fav color is Blue And her fav subject is Science

Explanation:

7 0
3 years ago
Read 2 more answers
Which type of game controller has a set of controls for each hand?
svet-max [94.6K]
If you play the Wii, they have the controller and then they have a nunchuck that connects to the other controller, and you use that with your other hand. Hope that helps :)
6 0
3 years ago
There are many ways that digital media has changed various facets of peoples’ lives, including perceptions of time and space, so
lys-0071 [83]

The ways in which digital media has had an impact on how people live,  are:

  • It has help in different levels of communication.
  • It has helped in community building, as well as social interaction.

<h3>How does digital media affect society?</h3>

It is brought about a kind of different levels of communication, because due to the use of these tech, people can communicate at different levels and at different times.

It has helped in community building, as well as social interaction because people from different tribes as well as culture can now understand and know themselves better, So in all, it has brought about positive change.

Therefore, The ways in which digital media has had an impact on how people live,  are:

  • It has help in different levels of communication.
  • It has helped in community building, as well as social interaction.

Learn more about digital media from

brainly.com/question/3653791

#SPJ1

3 0
1 year ago
Other questions:
  • A(n) ____ is a collection of one or more program statements combined to perform some action
    14·1 answer
  • Why is the answer A?
    6·1 answer
  • What cable should i be using to connect my android tablet to the pc?
    13·2 answers
  • Given the three side lengths, how can you tell if a triangle<br>is a right triangle?​
    5·1 answer
  • Implement a function named largerThanN that accepts three arguments: an array of type int, the size of the array of type int and
    10·1 answer
  • Which operating system is a version of Linux?​
    13·1 answer
  • Universal Containers (UC) has multi-level account hierarchies that represent departments within their major Accounts. Users are
    13·1 answer
  • (b) Cell B12 contains the formula, ROUND((SUM(B5:B9)*D1),1).
    15·1 answer
  • Does The ps5 digital have a disc drive even Though ps4 games are not compatible
    6·1 answer
  • 1) Coding for Table in Html<br>​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!