#include<stdio.h>
#include<conio.h>
#include<iostream.h>
#include<iomanip.h>
main ()
{
int i;
char nama[5][20];
float np1[5];
float np2[5];
float np3[5];
float nr[5];
clrscr ();
{
cout<<"Nama : ";
gets(nama[i]);
cout<<"Nilai Pertandingan I : ";
cin>>np1[i];
cout<<"Nilai Pertandingan II : ";
cin>>np2[i];
cout<<"Nilai Pertandingan III : ";
cin>>np3[i];
nr[i]=(np1[i] + np2[i] + np3[i]) / 3;
cout<<"--------------------------------------"<<endl;
cout<<"Siswa Yang Bernama : "<<nama[i]<<endl;
cout<<"Nilai rata-rata : "<<nr[i]<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<"Kelompok : III"<<endl;
cout<<"Nama : Riki"<<endl;
cout<<"Nama : Muhammad Rido"<<endl;
}getch();}
0 komentar:
Posting Komentar