Advertisement
JUN7

Mahasiswa menggunakan do-while (progam arjun ganteng)

Nov 11th, 2019
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     string v, w, x, y, z;
  7.     int pilihan = 1;
  8.     do{
  9.         cout<<"MASUKKAN NOMER : ";cin>>pilihan;
  10.         cout<<"MASUKKAN NAMA : ";cin>>v;
  11.         cout<<"MASUKKAN NIM : ";cin>>w;
  12.         cout<<"MASUKKAN ALAMAT : ";cin>>x;
  13.         cout<<"MASUKKAN PROGAM STUDI : ";cin>>y;        
  14.         cout<<"MASUKKAN TANGGAL LAHIR : ";cin>>z;
  15.     }
  16.     while(pilihan<=10);
  17.     while(v!="arjunganteng"||w!="41519010048"||x!="jl.asiabaru"||y!="teknikinformatika"||z!="130601");
  18.      {
  19.         cout<<"Berhasil Login";
  20.  
  21.     }
  22.  
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement