Bab 1 No 2

Menampilkan Tanggal-Bulan-Tahun :

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) {
int tgl,bln,thn;
cout<<"Masukkan Tanggal : ";
cin>>tgl;
cout<<"Masukkan Bulan   : ";
cin>>bln;
cout<<"Masukkan Tahun   : ";
cin>>thn;

cout<<"\n\t"<<tgl<<"-"<<bln<<"-"<<thn<<endl;
return 0;
}

Output :

 


Raptor :




Share this

Related Posts

Previous
Next Post »

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer