A push back(k); } int x; cin>>x


Download 10.92 Kb.
Sana04.01.2023
Hajmi10.92 Kb.
#1077761
Bog'liq
5-amaliy ish


5-Amaliy ish
N ta elementi bor deque navbati berilgan. Navbatning orqa tomoniga x element qo'shilsin.
#include
#include
using namespace std;
int main(){
int n; cin>>n;
int k,k1;
dequea;
for (int i=0; i
cin>>k;
a.push_back(k);
}
int x; cin>>x;
a.push_back(x);
while (!a.empty()){
cout<
a.pop_back();
}
}
Download 10.92 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling