Hi, I am trying to create a multiplication table (5x10) using a while loop and if statements. I can't seem to get rid of the output of the 5 0's in a row.
Here is my code so far.
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
//Declare Variables
int x=0, y=0, product;
//Order/Number the Columns and Rows
while(x+y<=15)
{
if(x==6)
{
x=x-5;
y++;
//Output the Zero Column of Data
cout << endl << setw(3) << y;
}
//Counts Up for The Columns
if(x==0)