#pragma argsused
#include <iostream.h>
void Bilangan (int *a, int *b){
int temp;
temp= *a;
*a=*b;
*b=temp;
}
int main () {
int a, x;
int b;
cout<<"Masukkan Bilangan A= ";
cin>>a;
cout<<"Masukkan bilangan B= ";
cin>>b;
cout<<"\n";
Bilangan (&a,&b);
cout<<"Bilangan A Sekarang ="<<a;
cout<<"\n";
cout<<"Bilangan B Sekarang ="<<b;
cout<<"\n";
cin>>x;
}
output :
download program c++
download program jeliot
download program java
download program delphi
download program pascal
Friday, March 16, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment