Գրել ծրագիր, որը կտպի տրված զանգվածի առաջին և վերջին էլեմենտները։
#include <iostream> int main() { const int n = 5; int arr[n] = {5, 2, 3, 1, 4}; // put your code here }
#include <iostream> int main() { const int n = 5; int arr[n] = {5, 2, 3, 1, 4}; // put your code here }