//program
jumlah hari
//Wulan
Novitasari
//7410030818
#include<iostream.h>
#include<conio.h>
void
main()
{
int
Jml_Hari[12] = {31,28,31,30,31,30,31,31,30,31,30,31};
int
Bulan, Tahun, JumlahHari;
cout<<"Inputkan
Bulan ke 1 - 12 = "; cin>>Bulan;
if
(Bulan == 2)
{
}
else
{
JumlahHari
= Jml_Hari[Bulan];
}
cout<<"Bulan
ke - "<<Bulan; endl;
cout<<"\n
Jumlah Hari ==> "<<JumlahHari<<" hari \n";
}
No comments:
Post a Comment