Pages

This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Jumat, 06 April 2012

Kelemahan V-xion 2011


  •  V-Xion Terbaru 2011 Agar Mendapat Lulus uji emisi EURO maka yamaha Meluncurkan teknologi canggih yaitu Injeksi yang didukung Sistem AIS
  • Kekurangan dr Yamaha V-xion Sekarang, terkadang terjadi Ledakan pada Knalpot pada saat Memasukan Gigi PersneLing
  • DAn tenaga V-xion terbaru kurang maximal

Program FPB

#include <cstdlib>
#include <iostream>

using namespace std;

class fpb{
      public:
             void masuk();
             void proses();
             void keluar();
            
      private:
              int x,y;
              int a,b;
              int j,k;
              int r,s;
              int bilangan;
      };
     
void fpb::masuk(){
     cout<<"masukkan bilangan pertama : ";
     cin>>x;
     cout<<"masukkan bilangan kedua   : ";
     cin>>y;
     }
    
void fpb::proses(){
     if(x>=y){
              a=x;
              b=y;
              };
     if(x<y){
             a=y;
             b=x;
             };
     suit:
     if(b==0) bilangan=a; //langkah 1
     else {
          r=a%b;  //langkah 2
          a=b;    // langkah 3
          b=r;    // langkah 3
          goto suit;
          }
     }
    
void fpb::keluar(){
     cout<<"FPB dari "<<x<<" dan "<<y<<" adalah "<<bilangan<<endl;
     }

int main(int argc, char *argv[])
{
    fpb hendy;
    hendy.masuk();
    hendy.proses();
    hendy.keluar();
   
    system("PAUSE");
    return EXIT_SUCCESS;
}

Program Selection Sort Minimum Ke Maksimum

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

int main ()
{
int p,l,t,volume;

cout<<"masukkan panjang: " ;cin >>p;
cout<<"masukkan lebar  : " ;cin >>l;
cout<<"masukkan tinggi : " ;cin >>t;

volume = p*l*t ;
cout<<"volume balok : "<<volume<<endl;

getch ();
return 0 ;
}

RUNING :