the program do the work but it also add numbers like 449176 why does it do it ??,i feel that the answer will make me understand function real better ,any one know the answer??
Code:
#include <iostream.h>
int kefel(int A,int B);
int kefel(int A,int B)
{
int x,y,t=0;
for (x=0;x<A;x++)
{
for (y=0;y<B;y++)
{
t=++t;
}
}
cout<<t;
}
int main()
{
int a=0,b=0,k=0;
cin>>a>>b;
cout<<kefel (a,b);
cin>>k;
return 0;
}


