Sabtu, 21 Oktober 2017

[STRUKTUR DATA] : Algoritma Program Array 2 Dimensi

    #include <stdio.h>

    int main(){
            int n,t,kcl;
               int baris, kolom;
    _____________________________________________________________________

    write("\t"); writen("%d", &baris);
                 write("\t"); writen("%d", &kolom);
    _____________________________________________________________________

        int f[baris][kolom];
             for(n=0;n<baris;n++){
                      for(t=0;t<kolom;t++){
                               write("\t Baris (%d) Kolom (%d)  : ",n+1,t+1); writen("%d", &f[n][t]);
    _____________________________________________________________________

        for(n=0;n<baris;n++){
                 for(t=0;t<kolom;t++){
                          write("\t %d", f[n][t]);
    _____________________________________________________________________

    kcl=100;
          for(n=0;n<baris;n++){
              for(t=0;t<kolom;t++){
                   if(f[n][t]<kcl){
                        kcl=f[n][t];}
    _____________________________________________________________________

    write(   : %d",kcl);
            }
Share:

0 komentar:

Posting Komentar


BTemplates.com

About Me

Diberdayakan oleh Blogger.

Followers