Mencari Luas Segitiga

dibawah ini merupakan contoh Program untuk Mencari Luas  Segitiga dengan menggunakan c++

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

# define x 0.5
# define n ‘\n’

int main ()
{
double a =5.0;
double t =4.0;
double luas;
luas = 0.5 * a * t;
cout<<luas;
cout<<n;
getch ();
}

About these ads

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

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: