goster has return type void so it doesn't return anything. It doesn't make sense to try to print it cout<<goster(x);. If you want goster to return something change the return type and return something.
hi peter i am pretty new to programming i dont know what changes should i make i am getting error at this point.how should it be
29 D:\c+++\k.cpp no match for 'operator<<' in 'std::cout << goster(x)'
goster() doesn't return a thing, not even int. the hesapla() returns an int to the goster() but it doesn't do anything... this code will make everything clear: