Wy22’s Weblog

Just another WordPress.com weblog

Program rambu2 C++

Mau Program Rambu rambu ?

Rambu – Rambu Lalulintas Harus di patuhi yaa……

 

 

 

Dibawah ini sintak program C++, ya tinggal do copy ja sintak ini lalu paste di program c++, dah bisakan membuat lembar kerja barunya. Ini caranya: buka program C++, pilih File di menu bar, new, text edit. Slamat mencoba…?

 

#include<stdio.h>

#include<conio.h>

 

void main()

 

{

 

 char warna;

 

 do

  {

  clrscr();

  printf(“PILIHAN MENU \n”);

  printf(“=============== \n”);

  printf(“1. Merah \n”);

  printf(“2. Kuning \n”);

  printf(“3. Hijau \n \n”);

 

  printf(“Masukan Warnanya =”);scanf(“%s”,&warna);

 

  if (warna==’1′)

 

    printf(“Anda Harus Berhenti”);

 

  else

  if (warna==’2′)

 

    printf(“Anda Harap Hati-hati”);

 

  else

  if (warna==’3′)

 

    printf(“Anda Boleh Jalan”);

  getch();

 }

 while(warna !=’x’);

 

 

}

 

 

 

 

 

 

 

 

 

Masih Bingung Kirim E-mailnya ke : daier@telkom.net / daier.sny@gmail.com / way_gwbgt@yahoo.co.id

 

“Jadi Orang itu Harus Nyeleneh…”

No comments yet.

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: