#include<stdio.h>
void main()
{
int kehadiran,praktikum,kuis,project,uts,uas,nilaiakhir;
printf ("Masukkan Nilai kehadiran :");
scanf("%d", &kehadiran); printf ("\n");
printf ("Masukkan Nilai praktikum :");
scanf("%d", &praktikum); printf ("\n");
printf ("Masukkan Nilai kuis \t :");
scanf("%d", &kuis); printf ("\n");
printf ("Masukkan Nilai project :");
scanf("%d", &project); printf ("\n");
printf ("Masukkan Nilai uts \t :");
scanf("%d", &uts); printf ("\n");
printf ("Masukkan Nilai uas \t :");
scanf("%d", &uas); printf ("\n"); printf ("\n");
nilaiakhir = (0.1*kehadiran)+(0.2*praktikum)+(0.1*kuis)+(0.25*project)+(0.15*uts)+(0.2*uas) ;
printf("nilai akhir = %d ",nilaiakhir);
}
0 komentar:
Posting Komentar