divides.cpp

We use cookies. Read the Privacy and Cookie Policy

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;

}