The-Pinguin

Reference Information About The Technology

Subscribe
Add to Technorati Favourites
Add to del.icio.us

Suported by :

Bisnis Internet | Bisnis Online | Uang dari Internet |  Duit gratis | komisi 80% CO.CC:Free Domain
Wednesday, May 27, 2009

Source Code Tahun kabisat di C++

Posted by Oki Arifin

#include <stdio.h>
#include <conio.h>

void main() {
int th;
printf("Masukan tahun: ");
scanf("%i", &th);


if (th %4==0) {
printf("Tahun %i adalah tahun kabisat");
}else {
printf("Tahun %i bukan tahun kabisat");
}
getch();
}

Artikel Terkait:

2 comments:

Hani said...

maaf mas kyanya artikel anda untuk tahun kabisat ini bnyak yang salah dech . . .

apa mas sudah ngecek terlebih dahulu sebelum posting ???

sorry ^_^

Oki said...

Sebnrnya artikel tu sdah bnar, tp kmrin wktu sya posting lpa d encode dlu. jd bnyk Code yg slah..??
mksh y atas msukanny...
skrg Script di atas sudah benar, coba cek lgi y..??
klw msh ada yang slah, beri thu lgi y....

Post a Comment