Program fungsi ascii dan matriks by ziijeleng

VIEWS: 359 PAGES: 5

									1. Program fungsi ascii dan matriks

Flowchart :

     start           ascii()                 matriks()




    ascii()                                   baris1,
                    karakter                  kolom1



                                             matrix A
   matriks()
                  int (karakter)


                                      For(i=1; i<=baris1; i++)

     end            karakter
                                      For(j=1; j<=kolom1; j++)



                                              A[ i ][ j ]
                    end sub




                                              baris2,
                                              kolom2



                                             matrix B




                                      For(i=1; i<=baris2; i++)




                                      For(j=1; j<=kolom2; j++)



                                              B[ i ][ j ]




                                          tampil matrix A




                                      For(i=1; i<=baris1; i++)




                                      For(j=1; j<=kolom1; j++)



                                              A[ i ][ j ]




                                                  1
                1




       tampil matrix B




  For(i=1; i<=baris2; i++)




 For(j=1; j<=kolom2; j++)



            B[ i ][ j ]




       Hasil perkalian
          matriks




  For(i=1; i<=baris1; i++)




 For(j=1; j<=kolom1; j++)




       Hasil [ i ][ j ] = 0




For(k=1; k<=kolom1; k++)




Hasil += A[ i ][ j ] * B[ k ][ j ]



         Hasil [ i ] [ j ]




           end sub
Source Code :
Print Out :

								
To top