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

Given the sequence of DNA nucleotide base TAGTAGTAG give the complementary stand of mRNA produced during transcription
Where are metalloids used in everyday life?
Tony bought 3 tickets to a concert for $78. how much will it cost for 6 tickets to the concert if all tickets have the same unit price? use the table below to h
Graph this equation Y=3x
What is a change analysis survey?
is radium more powerful than uranium
What was the general U.S. opinions about war
Steve gadd is known as one of the most influential drummers of all time, and he toured with eric clapton. what is wrong with the sentence?the ideas are not coor
which of the following are examples of a violation of procedural due to process? select all that apply a law requires all voters to show valid identification th
Who discovered copper and in what year?