0
#include<iostream>
#include<conio.h>
#define height 10

using std::cout; 
using std::cin;
using std::endl;

int main ()
{
//int num=0;
int n,m,width;
int count = 0;
int nums[count]; int div=0;

cout<<"Enter the number you wish to enter: "; cin>>width;
int jologs [height][width];
cout<<endl<<width<<endl;
 
for (int i=0, m=width; i < width; m--,i++)
    {
    cout<<endl<<endl<<"Number(s) Left to Enter "<<"["<<m<<"]"<<"..."<<endl<<endl;
    cout<<"Enter number: "<<" ===> "; cin>>nums[count];
    count++;
    }
  for (n=0;n<height;n++)
    for (m=0;m<width;m++)
    {

     jologs[n][m]=(n+1)*(nums[m]);
    // cout<<"\t"<<jologs[n][m]<<" "<<endl;
    }
      cout << "A multiplication table:" << endl
          << "   0\t1\t2\t3\t4\t5\t6\t7\t8" << endl
          << "" << endl;
          
     for(int c = 1,x=0; c < height, x<10 ;x++, c++)
     {
          cout << x << "| ";
          for(int i = 1,x=0; i < width, x < width; x++, i++)
          {
                // div *= nums[x];    
          //cout <<nums[x] << '\t';
          }
          cout << endl;
     }
//cout<<endl<<nums[0];
//cout<<jologs[0][0];
    getch();
  return 0;
}
2
Contributors
2
Replies
4
Views
6 Years
Discussion Span
Last Post by butchoy
0

OK, so what's the problem?

this picture may help what i suppose trying to do.. sorry my english is bad.. tnx in advance..:)

Attachments program.JPG 88.85 KB
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.