contoh dasar pemograman rumus luas segitiga di c++

# include <iostream.h>
#include <math.h>
# include <conio.h>

main()
{
      double x,a,t;
      cout<<" Masukkan Nilai Tinggi Segitiga      :";
      cin>>a;
      cout<<" Masukkan nilai sisi segitiga        :";
      cin>>t;
      x = 0.5*a*t;
      cout<<x;

      cout<<"\n\n\n \3\3\3  OKe Toh Gaaannn:D  \3\3\3     ";
      getch();
      }

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: