This is default featured post 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Tampilkan postingan dengan label program menghitung luas dan keliling lingkaran. Tampilkan semua postingan
Tampilkan postingan dengan label program menghitung luas dan keliling lingkaran. Tampilkan semua postingan

Senin, 05 Maret 2012

program menghitung luas dan keliling lingkaran

#include <stdio.h>
#include <stdlib.h>

int main () {
    //deklarasi variable
    const float pi = 3.14;
    float r, l, k;
    //judul program
    printf("program menghitung luas dan keliling lingkaran\n\n");
    //input
    printf("masukan jari-jari lingkaran: "); scanf("%f",&r);
    //proses
    l=pi*r*r;
    k=pi*2*r;
    //output
    printf("\nLuas = %.2f x %.2f^2 = %.2f\n",pi,r,l);
    printf("\nKeliling = %.2f x 2 x %.2f = %.2f\n",pi,r,k);
    printf("\n\n");
    system ("pause");
    return (0);
}
/*By D-JokerZzZ*/

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More