Hitam Putih

welcome to Hitam Putih .. !!enjoy with my Blog

Kamis, 05 Januari 2012

Membuat void tukar

source code

#include <iostream>
#include <conio>
void tukar(int a,int b);
void main()
{
int a,b;
int temp;
a=7;
b=4;
cout<< a<< " , "<< b<< "\n\n";
tukar(a,b);
cout<< endl;
getch();
}
void tukar(int a,int b)
{
int temp;
temp = b;
b = a;
a = temp;
cout<< a<< " , "<< b;
}

Hasil saat di RUN



| Free Bussines? |

0 komentar:

:) :( ;) :D ;;-) :-/ :x :P :-* =(( :-O X( :7 B-) :-S #:-S 7:) :(( :)) :| /:) =)) O:-) :-B =; :-c :)] ~X( :-h :-t 8-7 I-) 8-| L-) :-a :-$ [-( :O) 8-} 2:-P (:| =P~ :-? #-o =D7 :-SS @-) :^o :-w 7:P 2):) X_X :!! \m/ :-q :-bd ^#(^ :ar! buka rahasia

Posting Komentar