daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Feb 15th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <conio.h>
  3.  
  4. void main(){
  5.  
  6.   // deklarasi tipe data variabel
  7.   char Nama[100];
  8.   char Jenkel[2];
  9.  
  10.   // --- proses input ---
  11.   cout << "Siapakah Namamu?"<< endl;
  12.   cout << "Jawab: ";
  13.   // menyimpan data ke variabel
  14.   cin.getline(Nama,100);
  15.  
  16.   cout << "Jenis Kelamin ? [L/P]"<< endl;
  17.   cout << "Jawab: ";
  18.   // menyimpan data ke variabel
  19.   cin.getline(Jenkel,2);
  20.  
  21.   // --- proses output ---
  22.   cout << "Salam kenal, " << Nama << " Kamu berjenis kelamin " << Jenkel << endl;
  23.  
  24.   getch();
  25.  
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top