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;
}
}
Last edited on