-Black Inspiration- -Telor-ceplox- -PROFIL- -Facebook- -Twitter- "* ikhsan_choco@ymail.com "*
Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!! Jangan lupa kasih komentar demi kemajuan blog ini...!!!

12 Mar 2011

operator naik turun c++


Beberapa source code tentang syntax dasar C++ dan Input output saya postingkan disini,salah satunya adalah source code pemograman mencari nilai naik turu, 
misal kita menginputkan nilai 5 , maka hasilY : 1 2 3 4 5 atau 5 4 3 2 1

nah ini source codenya :

int  m=20, n=10;

cout<<"m ="<<m<<",n="<<n<<endl;
++m;--n;
cout<<"m ="<<m<<",n="<<n<<endl;
++m;--n;
cout<<"m ="<<m<<",n="<<n<<endl;
++m;--n;
cout<<"m ="<<m<<",n="<<n<<endl;
++m;--n;
cout<<"m ="<<m<<",n="<<n<<endl;
++m;--n;
cout<<"m ="<<m<<",n="<<n<<endl<<endl<<endl;

Tidak ada komentar:

Posting Komentar