[ create a new paste ] login | about

Link: http://codepad.org/Uj5jIF5S    [ raw code | output | fork ]

C++, pasted on Jan 23:
1
2
3
4
5
6
7
8
9
10
#include <algorithm>
#include <iostream>

int main() {
  const int array[] = { 5, 7, 2, 9, 0, 2, 4, 5 };
  
  std::cout << "Минимальный элемент: " << *std::min_element(array, array + sizeof(array) / sizeof(array[0])) << std::endl;

  return 0;
}


Output:
1
Минимальный элемент: 0


Create a new paste based on this one


Comments: