Contoh Listing Program C++ Menghitung Luas Volume


#include <vcl.h>
#include <stdio.h>
#include <conio.h>
main()
{
int p,l,t,v,L;
printf("panjang: ");scanf("%d",&p);
printf("lebar: ");scanf("%d",&l);
printf("tinggi: ");scanf("%d",&t);
v=p*l*t;
L=(2*p*t)+(2*p*l)+(2*l*t);
printf("volume balok:%d",v);
printf("\nLuas permukaan:%d",L);
getch();
}

ConversionConversion EmoticonEmoticon

:)
:(
=(
^_^
:D
=D
=)D
|o|
@@,
;)
:-bd
:-d
:p
:ng
:lv
Thanks for your comment

Random Posts