#include
#include
int main (void){
int a, b, temp;
printf("--penukaran dua isi variabel--\n");
printf("masukkan nilai a : ");
scanf("%d",&a);
printf("masukkan nilai b : ");
scanf("%d",&b);
temp = a;
a = b;
b = temp;
printf("setelah ditukar maka: \n:");
printf("a=%d, b=%d\n", a,b);
getch();
return 0;
}
0 komentar:
Posting Komentar