Programming
556

contoh coding pemrograman while






  15-Jun-2020 02:38:19



#include <iostream>

#include <stdio.h>

#include <stdlib.h>


using namespace std ;


void ulang ()

{

    cout << "tekan ENTER untuk kemabali ";

}

int main ()

{

  int pilih;


  menubos :

  cout <<" pilihan menu ";

  cout <<"[1].Baca data ";

  cout <<"[2].Ubah data ";

  cout <<"[3].Hapus data ";

  cout <<"[4].exit ";

  cout <<"input pilihan =>";

  cin  >> pilih ;

  system("cls");


  while (pilih >= 0)

  {

    if(pilih == 1)

    {

      cout <<"anda memilih nomor 1 ";

      ulang();

      system("pause");

      goto menubos;

    }

    system("cls");

    if(pilih == 2)

    {

      cout <<"anda memilih nomor 2 ";

      ulang();

      system("pause");

      goto menubos;

    }

    system("cls");

    if(pilih == 3)

    {

      cout <<"anda memilih nomor 3 ";

      ulang();

      system("pause");

      goto menubos;

    }

    system("cls");

    if(pilih == 4)

    {

      return 0;

    }

    else

    {

      goto menubos;

    }

  }

}

*Beware click the link!


DISCUSSION



16-Jun-2020 12:06:22

Buat apa bro?




Reply


16-Jun-2020 15:20:22



itu looping


Reply


Login for report, comment and join discussion
Login Here
Sponsored

Popular Posts
Gps Tracker Seccodeid Free Too...
General
21469
204
Top


Djie sam soe Djie sam soe
Complete Basic Course in Kali...
Linux
14498
4
Top


Djie sam soe Djie sam soe
Komintod (Ministry of Communic...
Data Leak
6592
100
Top


Murtad methamphetamine Murtad methamphetamine
Free Proxy List
Networking
3643
3
Top


Sandidi Sandidi
Mass Reverse IP Unlimited
Tools Hacking
3458
17
Top


ImamWawe ImamWawe

Related Post

Youtube Video

Subscribe