#include<vcl.h>
#include<stdio.h>
#include<conio.h>
main()
{
float t,r,luas,volume,keliling,ls,lpt,lpt2;
printf("\n nilai r:"); scanf("%f",&r);
printf("\n nilai t:"); scanf("%f",&t);
luas = 3.14*r*r;
volume= 3.14*r*r*t;
ls= 2*3.14*r*t;
lpt= 2*luas+ls;
lpt2= 2*3.14*r*r+t;
printf("\n hasil luas=%2.2f",luas);
printf("\n hasil volume=%2.2f",volume);
printf("\n hasil ls=%2.2f",ls);
printf("\n hasil lpt=%2.2f",lpt);
printf("\n hasil lpt2=%2.2f",lpt2);
getch()
}
ConversionConversion EmoticonEmoticon