Pages

Kamis, 17 Oktober 2013

FOR Perulangan Angka Genap

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

void main()
{
 int i;
cout<<"MENAMPILKAN BIL GENAP 1-10"<<endl;
cout<< "Bilangan genap : " << endl;
       for(i=1;i<=10;i++)
       {
       i=i+1;
       cout<<i;
       //if(i)cout << i << ", ";
       }
       getch();
}

0 komentar:

Posting Komentar

 

(c)2009 TI Anti Pornografi. Based in Wordpress by wpthemesfree Created by Templates for Blogger