Jump to content

Giga.Chalauri

წევრი
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Giga.Chalauri

  1. პროგრამამ უნდა შეკრიბოს მასივის ლუწინდექსიანი წევრები და გამოიტანოს ჯამი ფუნქციის მეშვეობით,მე რაც შევძელი ეს არის,დამეხმარეთ

    #include <iostream>

    #include <vector>

    using namespace std;

    int main () {

    int a;

    vector <int> V ;

    while (cin >> a )

    V.push_back(a);

    int sum = ;

    for (int i= ; i < V.size() ; i++)

    if (V % 2 == 0 )

    sum += V ;

    cout << " Luwi elementebis jami aris " <<sum <<endl;

    system("pause");

    return 0;

    }

    მე ასე დავწერდი ამ პროგრამას ვექტორებისთვის .

    )
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.