Tukar 3 Bilangan
Program Tukar 3 Bilangan dengan Dev C++#include <iostream>
/* 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) {
int A,B,C,D;
cout<<"A = ";cin>>A;
cout<<"B = ";cin>>B;
cout<<"C = ";cin>>C;
D=A;
A=B;
B=C;
C=D;
cout<<endl;
cout<<"A = "<<A<<endl;
cout<<"B = "<<B<<endl;
cout<<"C = "<<C<<endl;
return 0;
}
Langganan:
Posting Komentar
(
Atom
)
Tidak ada komentar :
Posting Komentar