void functions error

can anyone help me with the error in this...i cant seem to find it

#include<iostream>
using namespace std;
void trapezoid(int, int);


int main()
{
int start,end;
cout<<"enter start and end value:";
cin>>start>>end;

trapezoid(int start, int end);
system("pause");

return 0;
}
void trapezoid(int a,int b)
{
int i, j ;

for (i=a;i<=b;i++)
{
cout<<endl;
for (j=1;j<=i;j++)
cout<<i;
}

}


Please use code tags when posting
http://www.cplusplus.com/articles/z13hAqkS/

trapezoid(int start, int end); should be trapezoid(start, end);
Last edited on
thnx @yanson
Topic archived. No new replies allowed.