welcome wawandiamond

Selamat datang di wawandiamond.blogspot.com #email : wawandiamond@gmail.com
Minggu, 20 Oktober 2013

1.buka borland c++
    tulis script
#include <conio.h>
#include <stdio.h>
#include <iostream.h>
 void main() {
 cout<<"----Perulangan while-----\n";    //judul
    int bil=1;                     //variabel
    while(bil<=5){             //syarat jika bil kurang dari 5
    cout <<bil<< "  ";          //output bil
    bil++;                      //kenaikan bill satu tingkat
  }
      cout<<"\n\ntekan enter.......!!!!";  //printah enter
       getch();
  cout<<"\n\n----Perulangan do while-----\n";  //judul
    int bil1=1;          //variabel
       do {              //melakukan pernyataan
         cout <<bil1<< "  "; //output
       bil1++;                //kenaikan
  }
  while(bil1<=5);                //syarat jika bil1 kurang dari 5
                  cout<<"\n\n      by wawan kuswanto";


  getch();

}

Maka hasilnya

Terimakasih semoga bermanfaat :)
20 Oct 2013

0 komentar:

Posting Komentar

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

Dafrar informasi

Terbaru

Popular Posts