Bajardi: farmonob behzod; tekshirdi: djangazova qumriniso; U(K)


Download 247.73 Kb.
Sana28.12.2022
Hajmi247.73 Kb.
#1013564
Bog'liq
BEK LAB — копия


BAJARDI:FARMONOB BEHZOD;
TEKSHIRDI:DJANGAZOVA QUMRINISO;
.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 247.73 Kb.

Do'stlaringiz bilan baham:




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