FAKULTAS TEKNOLOGI INFORMASI DAN KOMUNIKASI
Selamat Datang di Forum FTIKOM.

"Information & Communication Technology Faculty"
"UNIVERSITAS MULAWARMAN"


Daftarkan Diri Anda. Selamat Berposting.
Ramekan Forum kita guna memajukan Fakultas kita.

PROGRAM C++ DERET BILANGAN GANJIL Logo-u12
Best Regard

Join the forum, it's quick and easy

FAKULTAS TEKNOLOGI INFORMASI DAN KOMUNIKASI
Selamat Datang di Forum FTIKOM.

"Information & Communication Technology Faculty"
"UNIVERSITAS MULAWARMAN"


Daftarkan Diri Anda. Selamat Berposting.
Ramekan Forum kita guna memajukan Fakultas kita.

PROGRAM C++ DERET BILANGAN GANJIL Logo-u12
Best Regard
FAKULTAS TEKNOLOGI INFORMASI DAN KOMUNIKASI
Would you like to react to this message? Create an account in a few clicks or log in to continue.

PROGRAM C++ DERET BILANGAN GANJIL

Go down

PROGRAM C++ DERET BILANGAN GANJIL Empty PROGRAM C++ DERET BILANGAN GANJIL

Post  novay Fri Apr 08, 2011 3:45 pm

KALO YANG INI PROGRAM BUAT NENTUIN DERET BILANGAN GANJIL BRAY,,,


PROGRAM C++ DERET BILANGAN GANJIL 33574 PROGRAM C++ DERET BILANGAN GANJIL 33574

NIH SCRIPTNYA BRAY...

// Menentukan deret bilangan ganjil

#include <iostream.h> //untuk mengenali fungsi cin & cout
#include <conio.h> //untuk mengenali fungsi getche
main()
{
int batas, i;
cout<<"PROGRAM UNTUK MENENTUKAN DERET BILANGAN GANJIL"<<endl<<endl;
cout<<"Batas dari Deret Bilangan Ganjil : ";
cin>>batas; //data yg anda masukkan di simpan di variabel "batas"
cout<<endl;
cout<<"Deret Bilangan ganjil sampai angka "<<batas<<" adalah: "<<endl<<endl;
for(i=0;i<=batas;i++)
{
if(i%2!=0)
{
cout<<i<<" "; //sebagai pemisah / pemberi jarak antar bilangan
}
}
{
cout<<endl<<endl<<endl;
cout<<" http://novayhackz.blogspot.com"<<endl;
}
getch();
}



OUTPUTNYA KAYAK GINI NIH BRAY...

HASIL:
novay
novay
Forum Founder [Joker]
Forum Founder [Joker]

Posts : 488
Points : 840
Reputasi : 12
Age : 32
Location : Berau City
Universitas : University Of Mulawarman
Fakultas : Faculty Of Information and Communication Technology

http://ftikom-unmul.nstars.org

Kembali Ke Atas Go down

Kembali Ke Atas

- Similar topics

 
Permissions in this forum:
Anda tidak dapat menjawab topik