Menentukan Jumlah Hari dalam Bulan dan Tahun Tertentu

Hai teman-teman, jangan lupa subscribe Channel Youtube saya.
Subscribe tidak dipungut bayaran, mari dukung saya dengan klik tombol subscribe.

Terakhir diupdate pada 10/02/2020 oleh Wira Loksado

Script berikut akan menampilkan jumlah hari dalam bulan dan tahun tertentu sesuai dengan bulan dan tahun yang diminta.
Script ini menggunakan Array 1 Dimensi dan statemen if else.


//program jumlah hari
#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, J_Hari;
clrscr();
cout<<“Bulan ke [1…12] = “; cin>>Bulan;
cout<<“Tahun             = “; cin>>Tahun;
if (Bulan == 2)
{
if ((Tahun % 4 == 0) && (Tahun % 100 == 0))
{
J_Hari = 29;
cout<<“Tahun Kabisat”<<endl;
}
else
{
J_Hari = 28;
cout<<“Tahun Biasa”<<endl;
}
}
else
{
J_Hari = Jml_Hari[Bulan];
}
cout<<“Bulan ke-“<<Bulan; cout<<” Tahun “<<Tahun<<endl;
cout<<“Jumlah Hari ==> “<<J_Hari<<” hari”;
}


DMCA.com Protection Status
Artikel ini dilidungi oleh DMCA Takedown Services & Website Content Protection. Dilarang Copy-Paste.
Yang mau ngajakin ngopi silahkan klik

Hai teman-teman, jangan lupa subscribe Channel Youtube saya.
Subscribe tidak dipungut bayaran, mari dukung saya dengan klik tombol subscribe.



Like Facebook Wira Loksado dengan menekan tombol "Suka" di bawah ini agar tetap update informasi terbaru:

Mari Berdiskusi

Kindertrampolin

Kindertrampolin

… [Trackback]

[…] Find More here|Find More|Read More Informations here|Here you can find 57368 more Informations|Infos on that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]

play soccer physics game online

play soccer physics game online

… [Trackback]

[…] Read More here|Read More|Find More Infos here|Here you can find 60909 additional Infos|Informations on that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]

insulation

insulation

… [Trackback]

[…] Find More on|Find More|Find More Infos here|There you will find 81198 more Infos|Infos on that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]

iraqi Laws

iraqi Laws

… [Trackback]

[…] Read More on|Read More|Find More Infos here|Here you will find 84222 additional Infos|Informations on that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]

ADME

ADME

… [Trackback]

[…] Find More on|Find More|Read More Infos here|There you will find 85140 additional Infos|Informations on that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]

St George Attorney

St George Attorney

… [Trackback]

[…] Read More on|Read More|Find More Informations here|There you can find 44213 more Informations|Infos to that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]

image source

image source

… [Trackback]

[…] Read More here|Read More|Read More Informations here|There you will find 74895 additional Informations|Informations on that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]

Fashion Blog Weblink

Fashion Blog Weblink

… [Trackback]

[…] Find More here|Find More|Find More Infos here|Here you can find 8028 more Infos|Infos to that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]

Betting Bola Online

Betting Bola Online

… [Trackback]

[…] Find More on|Find More|Read More Infos here|There you can find 74139 additional Infos|Informations on that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]

allenskate

allenskate

… [Trackback]

[…] Read More here|Read More|Read More Informations here|Here you will find 6585 additional Informations|Informations to that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]

ashley furniture tv entertainment centers

ashley furniture tv entertainment centers

… [Trackback]

[…] Find More here|Find More|Find More Informations here|There you will find 34229 more Informations|Infos to that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]

best barbershops in birmingham al

best barbershops in birmingham al

… [Trackback]

[…] Read More here|Read More|Read More Informations here|Here you will find 72914 more Informations|Infos on that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]

wepad

wepad

… [Trackback]

[…] Read More here|Read More|Find More Infos here|There you will find 11284 more Infos|Informations to that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]

St George Plumber

St George Plumber

… [Trackback]

[…] Read More here|Read More|Read More Infos here|There you can find 15105 more Infos|Informations to that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]

www.bikesnwines.com

www.bikesnwines.com

… [Trackback]

[…] Find More here|Find More|Read More Informations here|There you can find 48070 additional Informations|Informations to that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]

Übergrößen 2018

Übergrößen 2018

… [Trackback]

[…] Find More here|Find More|Read More Infos here|Here you can find 83704 more Infos|Infos on that Topic: blog.loksado.com/c-menentukan-jumlah-hari-dalam-bulan-dan-tahun-tertentu […]