#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
Tidak ada komentar:
Posting Komentar