About

Wednesday, 18 January 2012

Program Bilangan Genap

#include <iostream.h>
#include <conio.h>

void gnpgnj(int angka)
{for(int x=1;x<=angka;x++)
 { if (x%2==0)
      cout<<endl<<x;
 }
}

main()
{
int angka;

cout<<"masukkan batas : ";cin>>angka;
gnpgnj(angka);
getch();
}

Baca Juga Artikel dibawah ini :

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons