divides.cpp

divides.cpp

#include ‹iostream.h›

#include ‹stl.h›

int input[3] = {2, 3, 4};

int main() {

 int result = accumulate(input, input + 3, 48, divides‹int›());

 cout ‹‹ "result = " ‹‹ result ‹‹ endl;

 return 0;

}