#include<stdio.h>
main()
{
int r;
float v=3.14,l,k;
printf("masukan nilai r = ");
scanf("%i",&r);
l=v*r*r;
k=v*r*2;
printf("hasil luas = %f\n",l);
printf("hasil keliling = %f\n",k);
}
main()
{
int r;
float v=3.14,l,k;
printf("masukan nilai r = ");
scanf("%i",&r);
l=v*r*r;
k=v*r*2;
printf("hasil luas = %f\n",l);
printf("hasil keliling = %f\n",k);
}
0 comments:
Posting Komentar