Program c++ :
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
char n[20],a [50],ttl[100],c[20],h[50];
cout<<"\t\tSelamat Datang Di Program Input Biodata\n\n"<<endl;
cout<<"Nama : ";
cin>>n;
cout<<"Alamat : ";
cin>>a;
cout<<"TTL : ";
cin>>ttl;
cout<<"Hobi : ";
cin>>h;
cout<<"Cita-cita : ";
cin>>c;
cout<<"\n\n\t\t Biodata Diri \n";
cout<<"Nama :"<<n<<"\nAlamat :"<<a
<<"\nTTL : "<<ttl
<<"\nHobi"<<h<<"\nCita-cita :"<<c<<endl;
return 0;
}
Raptor
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
char n[20],a [50],ttl[100],c[20],h[50];
cout<<"\t\tSelamat Datang Di Program Input Biodata\n\n"<<endl;
cout<<"Nama : ";
cin>>n;
cout<<"Alamat : ";
cin>>a;
cout<<"TTL : ";
cin>>ttl;
cout<<"Hobi : ";
cin>>h;
cout<<"Cita-cita : ";
cin>>c;
cout<<"\n\n\t\t Biodata Diri \n";
cout<<"Nama :"<<n<<"\nAlamat :"<<a
<<"\nTTL : "<<ttl
<<"\nHobi"<<h<<"\nCita-cita :"<<c<<endl;
return 0;
}
Raptor
Comments
Post a Comment