0

Hello

I am trying to write a multiplication table into a function but am not getting the result i want ive been looking at it for about 3 hours now and cant figure what is going on im not getting errors it runs fine but isnt givig me a neat table the extra numbers after each line i cant understand if someone could help either by adjusting or by talking me through the logic i would appriciate it below is my code for the project

thanks :)

```
void Multitablefunc(int intMultDisplay)//multiplication table generator function
{
for( int i=1; i<=intMultDisplay; i++ )
{
cout<<setw(5)<<i<< endl;
for( int j = 1; j<=intMultDisplay ; j++ )
{
cout << setw(5) << i*j ;
}
}
}
```