#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
cout<<"Program Tukar Bilangan" << endl;
int a, b, temp;
cout<<"Masukkan nilai A : ";
cin>>a;
cout<<"Masukkan NIlai B : ";
cin>>b;
temp = a;
a = b;
b = temp;
cout<<"Setelah Ditukar : "<<endl;
cout<<"Nilai A : "<<a<<endl;
cout<<"Nilai B : "<<b<<endl;
cout<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
Senin, 19 Mei 2014
PROGRAM TUKAR C++
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar