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