MarkBoran3369 MarkBoran3369
  • 18-10-2019
  • Computers and Technology
contestada

Write a C++ Win32 Console Application that will use nested for loops to generate a multiplication table from 1 x 1 to 10 x 10. Use the "tab" escape sequence ("\t") to format the table properly.

Respuesta :

tonb
tonb tonb
  • 18-10-2019

Answer:

#include <iostream>

using namespace std;

int main()

{

for (int outer = 1; outer <= 10; outer++)

{

 for (int inner = 1; inner <= 10; inner++)

 {

  cout << inner << "\tx\t" << outer << "\t=\t" << inner*outer << endl;

 }

 cout << endl;

}

}

Explanation:

I think when you replace the tabs by spaces, the layout is more pleasing. Couldn't figure out if you can override the default tab size of 8 characters...

Answer Link

Otras preguntas

how do you say happy thanksgiving in Cherokee Indian
How do the SS officers and guards in the camp force the prisoners to submit to their commands? Fear- threats to their safety and lives Dehumanization- lack of i
List the 3 types of critical relationships.
Why will a breeze move from land to the ocean at night?
what were the economic and political causes for the rise of the italian city-states (Florence, Milan, Rome and Venice)
During cellular respiration, cells obtain energy for performing work when... I. energy-rich molecules of glucose are broken down in the cytoplasm, and ATP is pr
How do you know 5 1/4 is less than 5 4/10?
why do you think latin music had such a great influence on the development of popular music?
What is the largest island in te west indies? what is its capitol?
How many people will become disabled during their lives? a. three in four b. one in two c. one in three d. four in five