#include <stdio.h>
#include <conio.h>
void main()
{
printf("Luas dan Volume Balok :\n ");
int p, l, t;
float V, Lu;
printf("Panjang=");scanf("%d",&p);
printf("Lebar=");scanf("%d",&l);
printf("Tinggi=");scanf("%d",&t);
V=p*l*t;
Lu=(2*p*t)+(2*p*l)+(2*t*l);
printf("\nVolume=%0.2f",V);
printf("\nLuas=%0.2f",Lu);
getch();
}
OUTPUT PROGRAM
0 komentar:
Post a Comment