#include <cstdlib>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
cout<<"Progam Tukar 3 Nilai Bilangan"<<endl;
int a,b,c,d;
a=2; //5
b=3; //2
c=5; //3
d=a;
a=c;
c=b;
b=d;
cout<<" Nilai A : "<<a<<endl;
cout<<" Nilai B : "<<b<<endl;
cout<<" Nilai C : "<<c<<endl;
return 0;
}
Output : Teseted work in win7 enterprise x64
0 Comment to "Program Tukar 3 Bilangan"
Posting Komentar