menghitung luas lingkaran

29 Januari, 2009

=========================================
*menghitung luas lingkaran
=========================================
#include

int main()
{
float r,luas,kell;

printf("r = ");
scanf("%f",&r);


luas=r*r*(float)22/7;
kell=2*r*(float)22/7;

printf("luas = %.2f",luas);
printf("kell = %.2f",kell);
return 0;
}

Related Post:

0 komentar:

About This Blog

Lorem Ipsum

  © Free Blogger Templates Columnus by Ourblogtemplates.com 2008 and Modified by blog wallpaper

Back to TOP