Full text

(1)

#include <conio.h> #include <iostream.h>

int main(void) {

int n,sum=0,max=0,min=0,i=1,jml_data; double rata; {

cout<<"Jumlah Data : ";cin>>jml_data;

cout<<"Masukan Nilai Ke-"<<i<<" : ";cin>>nilai; i++;

max=nilai; min=nilai; sum=sum+nilai; while(i<=jml_data) {

cout<<"Masukan Nilai Ke-"<<i<<" : ";cin>>n; if(n>max)

(2)

cout<<"Nilai Tertinggi : "<<max<<endl; cout<<"Rata-Rata : "<<rata<<endl; }

Gambar

Memperbarui...

Referensi

Memperbarui...

Download now (2 pages)