Selasa, 10 April 2012

ALPRO Menghitung Luas Segitiga

Flowchart




Koding C++>>>



#include <iostream>
#include <string>

using namespace std;
int main()
{
   string raptor_prompt_variable_zzyz;
   int t;
   int a;
   float luas;

   cout << "MENGHITUNG LUAS SEGITIGA" << endl;   raptor_prompt_variable_zzyz ="Masukkan tinggi=";
   cout << raptor_prompt_variable_zzyz << endl;
   cin >> t;
   raptor_prompt_variable_zzyz ="Masukkan alas=";
   cout << raptor_prompt_variable_zzyz << endl;
   cin >> a;
   luas =a*t/2;
   cout << "Luas="<< luas << endl;
   system("pause");
   return 0;
}

Tidak ada komentar:

Posting Komentar