Thursday, November 24, 2011

Unknown

Script Untuk Menampilkan Variabel (Kata) yang Telah diketikkan (Nama, Nim, Alamat, Asal, Jurusan)













#include <iostream.h>
#include <stdio.h>

void main()
{
char nama[30],alamat[30],asal[30],jurusan[30],nim[50];
cout<<"Masukkan nama    : ";gets(nama);
cout<<"Masukkan nim     : ";gets(nim);
cout<<"Masukkan alamat  : ";gets(alamat);
cout<<"Masukkan asal    : ";gets(asal);
cout<<"Masukkan jurusan : ";gets(jurusan);
cout<<endl<<endl;


cout<<"Dan Ternyata Keluar ?????\n";
cout<<endl<<endl;

cout<<"Nama             : "<<nama<<endl;
cout<<"Nim              : "<<nim<<endl;
cout<<"Alamat           : "<<alamat<<endl;
cout<<"Asal             : "<<asal<<endl;
cout<<"Jurusan          : "<<jurusan<<endl;
}

Unknown

About Unknown -

Author Description here.. Nulla sagittis convallis. Curabitur consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et, nibh. Duis vulputate elit in elit. Mauris dictum libero id justo.

Subscribe to this Blog via Email :

1 comments:

Write comments
Fauzian
AUTHOR
March 21, 2014 at 9:21 AM delete

Wah bagus tutorial nya mas :)
Thanks

Reply
avatar