You are on page 1of 1

#include <stdio.

h>
#include <stdlib.h>
#include <conio.h>
/*
*
*/
void main(int argc, char** argv) {
double A, B, C;

printf("Masukkan Nilai A:");


scanf("%lf, &A");
printf("Masukkan Nilai B:");
scanf("%lf, &B");
printf("Masukkan Nilai C:");
scanf("%lf, &C");

double Ave = (A+B+C)/3;

printf("Nilai Rata-rata = %lf", Ave);

return (EXIT_SUCCESS);

You might also like