Jump to content

MCsanchez

წევრი
  • Posts

    3
  • Joined

  • Last visited

Everything posted by MCsanchez

  1. დიდი მადლობა ჯიგრები ხართ, მაგრად დამეხმარეთ )
  2. პროგრამამ უნდა შეკრიბოს მასივის ლუწინდექსიანი წევრები და გამოიტანოს ჯამი ფუნქციის მეშვეობით,მე რაც შევძელი ეს არის,დამეხმარეთ #include<iostream.h> #include<stdlib.h> #define n 5 int luwebi(int); main () { int luwebi(); system("pause"); return 0; } int luwebi(int) { int i,a[n],s; for(i=0;i<n;i++){ cout<<"sheitanet ricxvi\n"; cin>>a[n]; } for(i=0;i<n;i++){ if(i%2==0){ s=a[0]+a[n]; } cout<<s; } return s; }
×
×
  • 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.