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]
3 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]3 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
Una pregunta cuales son los ataques de Sindel que por favor y me lo diga gracias
Len [333]
I do not know spanish please say in english
5 0
3 years ago
What device connects your computer to a wireless network?
Darina [25.2K]

Answer:

a router

Explanation:

5 0
3 years ago
Read 2 more answers
The sign used for closing a tag is​
iragen [17]

Answer:

The sign used for closing a tag is answer is /.

Explanation:

I program all the time and when I am programming in HTML I use tags all the time so I basically memorized it.

8 0
3 years ago
What do you mean by word-wrap?
olga2289 [7]

Answer:

it is also know as line breaking

Explanation:

is breaking a section of text into lines so that it will fit into the available width of a page, window or other display area

3 0
3 years ago
Before using an advanced filter, you must first set up a(n) ________.
Whitepunk [10]
The answer is b autofilter
7 0
3 years ago
Other questions:
  • If a method writes to a file it should start out like (fill out the blank, what should you write after the parameters in the met
    12·1 answer
  • You should not define a class field that is dependent upon the values of other class fields: Group of answer choices In order to
    14·1 answer
  • When someone makes a bad or immoral decision because a group of their friends is also doing it, it is called:
    10·1 answer
  • What do newly PivotTables look like?
    9·1 answer
  • A use case description is the best place to start for the design of the forms for a user interface.​ True False
    15·1 answer
  • How does digital camera differ than manula camera?​
    6·1 answer
  • Identify one technology tool used for work​
    7·1 answer
  • java Two smallest numbers Write a program that reads a list of integers, and outputs the two smallest integers in the list, in a
    6·1 answer
  • What is the first step in finding a solution to a problem? Choose a solution. Think of options to solve the problem. Try the sol
    6·1 answer
  • Do you play Rocket League
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!