menghitung luas dan keliling lingkaran

ciee lagi bingung cari script c tugas prokom yah..
nih contohnya

/*menghitung luas dan keliling lingkaran*/
#include
main()
{
float R,L,K, phi;
printf(“menghitung luas dan keliling lingkaran \n\n”);
printf(“Masukkan nilai R! “);
scanf(“%f”,&R);
phi=3.14;
L=phi*R*R;
printf(“Luas Lingkaran = %5.4f”,L);
K=2*phi*R;
printf(“Keliling Lingkaran = %5.4f”,K);
}/*fadilla zennifa*/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s