It`s My Second Home,, Happy Surfing! n_n

Prikitiw,,!!!

Macam-macam Perintah Kondisi Pada Bahasa Pemrograman C++


1. Pernyataan If

Struktur percabangan dimana bentuk umum dari IF … adalah:

If (Kondisi)

{

Statement 1;

}

2. Pernyataan IF … ELSE

Bentuk umum dari IF … ELSE adalah:

If (Kondisi)
{
Statement 1;
Statement 2;
}
else
{
Statement 3;
Statement 4;
Statement dst;
}

3. Pernyataan Switch

Bentuk umum dari Swicth … Case adalah:

switch(skor)
{
case 1: …
break;
case 2: …
break;
….
}

November 24, 2010 - Posted by | saatnya belajar

2 Comments »

  1. gitu tok??/????/

    Comment by fullpremium | January 3, 2011 | Reply

    • iya tok…😀

      Comment by Gai Black | January 4, 2011 | Reply


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: