mencari rata-rata yang di gunakan kembali:
programnya:
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
int tgs1, tgs2, tgs3;
float rata, varian, deviasi;
cout<<"Masukkan nilai Tugas Pertama =";
cin>>tgs1;
cout<<"Masukkan nilai Tugas Kedua= ";
cin>>tgs2;
cout<<"Masukkan nilai Tugas Ketiga= ";
cin>>tgs3;
rata=(tgs1+tgs2+tgs3)/3;
cout<<"Nilai Varian ="<<varian+tgs2<<endl;
cout<<"Nilai Standar Deviasi = "<<deviasi+tgs3<<endl;
cout<<"Nilai Rata - Rata = "<<rata<<endl;
return 0;
}
hasil programnya:
Sabtu, 16 April 2016
powerpoin 6.2
Unknown
Author & Editor
Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.
07.27
alpro
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar