SUMMING THE PROGRAM DATA IN THE ARRAY


     Array (array) is a data type tersetruktur within which consist of components - components that have the same data type. In an array of large number of components is fixed.

    Array is a systematic arrangement of objects, usually in rows and kolom.Secara particular, it may refer to arary one-dimensional. add my number is the same arrayy bleak right we add a number of laennya.berikut bilngan with an example program in C + +, please understand and hopefully this info can help in your problem.

# include <iostream>

int main () {
  int numbers [10];
  int n;
  int count = 0;

     court <<"\ t \ tSlamet Islan Al Hidayah" <<endl;
     court <<"\ t \ t 10018075" <<endl;
     court <<endl;
     court <<"Sum Program Data In Array" <<endl;
     court <<endl;
     court <<"Enter the amount of data:";
     cin>> n;


  for (int i = 0; i <n; i + +) {
    court <<"Enter the data to [" <<i +1 <<"]:";
    cin>> numbers [i];
     }

  for (int a = 0; a <n; a + +) {
    number = number + numbers [a];
     }
    court <<endl;
    court <<"the sum of all data:" <<number <<endl;

return 0;
}
Output :

Well that's the program that I can make,,,,,!
If there are less jelass know any mistake, do not hesitate to leave a comment ataun advice. So that I can fix it later terimakasihh over his visit,,
Regards super ..

0 Response to " SUMMING THE PROGRAM DATA IN THE ARRAY "