#include <iostream.h> #include <conio.h> using namespace std; int main() { int temp,a,b; a =100; b =50; cout << "isi nilai :"<<a << endl; cout << "isi nilai2 :"<<b << endl; temp =a; a =b; b =temp; cout << "sesudah tertukar" << endl; cout << "isinilai = "<<a << endl; cout << "isinilai = "<<b << endl; getch(); }
No comments:
Post a Comment