Follow

Friday 23 March 2018

Cara membuat program penjumlahan nilai matriks di c++

berikut kodenya
#include <conio.h>
#include <iostream.h>
int main(){
    int data[5];
    int a,d,i=0;
   
    for(d=0;d<5;d++){
        cout<<"Masukkan nilai matriks ke-"<<d<<" ";
        cin>>data[d];
        i=data[d]+i;
    }
   
    cout<<"----------------------------------------- +"<<endl;
    cout<<"Hasilnya penjumlahan nilai matriks adalah = "<<i;
    getch();
}

Baca juga : cara membuat program penjualan sepatu dengan memakai fungsi dan perulangan (for) di c++

1 comment:

  1. Online Casino Online: How To Play Slots Online in South Africa
    In this article, we will guide you 샌즈카지노 to the top online casino and how to kadangpintar play online slots and learn more about the online games 제왕카지노 that are available in South Africa.

    ReplyDelete