#include <iostream>using namespace std;int main (){int n, a[100], i, k;//se citesc datele de intrarecout<<"n=";cin>>n;cout<<"k=";cin>>k;for (i=0;i<n;i++){cout<<"a["<<i<<"]="; cin>>a[i];}for (i=k;i<n;i++)a[i-1]=a[i];cout<<"Elementele vectorului b: ";for (i=0;i<n-1;i++)cout<<a[i]<<" ";return 0;}