Author: aanmuhamadsubekhan
flowchart :
Bahasa C :
#include<stdio.h>
#include<conio.h>
int main()
{
float keliling,l,luas;
printf(” Program Menghitung Luas Persegi Panjang\n”);
printf(” \n Keliling = “);
scanf(“%f”,&keliling);
printf(“\n Lebar = “);
scanf(“%f”,&l);
luas=keliling/l;
printf(“\n Luas = %.2f\n”,luas);
getch();
}
- Mulai
- Masukan rumus (L=d1*d2)
- Ubah rumus menjadi (d1= L/d2)
- Masukan nilai luas layang layang
- Masukan nilai d2
- Lalu hitung menggunakan rumus d1=L/d2
- Lalu print hasil d1
- Selesai
This is your very first post. Click the Edit link to modify or delete it, or start a new post. If you like, use this post to tell readers why you started this blog and what you plan to do with it.
Happy blogging!