Senin, 19 Mei 2014

PROGRAM TUKAR C++

#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;
}



fahmi,s blogPosted By Fahmi's BLog

Semoga informasi yang Fahmi's sampaikan sangat bermanfaat bagi Kita semua contact me

Thank You

0 komentar:

Posting Komentar