Page 56 - MAIDA-23833025
P. 56

Modul Dasar Pemrograman




                                              cout<<setprecision(
                                              2)<<"
                                              "<<nilai2[i];
                                              cout<<setprecision(
                                              2)<<"
                                              "<<hasil[i]<<endl;
                                            }
                                            cout<<"------------------
                                            ------------------------
                                            "<<endl;
                                            getch();
                                         }

                         Output yang akandihasilkan,
                         dari program contoh-2 diatas
                         adalah:
















                                                           Gambar 5.2.
                                                          Hasil Contoh-2































                                                                                                       53

                                                                                                       55
   51   52   53   54   55   56   57   58