fayllar.org
ma'muriyatiga murojaat qiling
Bajardi: farmonob behzod; tekshirdi: djangazova; U(K)
Download
4.95 Kb.
Sana
31.03.2023
Hajmi
4.95 Kb.
#1313886
Bog'liq
BEK LAB
BAJARDI:FARMONOB BEHZOD;
TEKSHIRDI:DJANGAZOVA;
.U(K)
massivining musbat
, toq indeksli elementlarining yig‘indisini toping.
YECHILISHI;
#include
#include
using
namespace std
;
int main(){
int u[5]={1,3,-4,5,4},s=0;
for(int i=0;i<5;i++){
cout<<"u["<
}
for(int i=0;i<5;i++) {
if(u[i+1]%2==1) {
cout<<"u["<
s=s+u[i+1];
}
}
cout<<"s="<
return 0;
}
Download
4.95 Kb.
Do'stlaringiz bilan baham:
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling