RAPTOR :
Hasil :
Syntax C++ :
#include <iostream>
#include <string>
using namespace std;
int main()
{
string raptor_prompt_variable_zzyz;
int a,b,c;
raptor_prompt_variable_zzyz ="masukan var ke 1 =";
cout << raptor_prompt_variable_zzyz ;
cin >> a;
raptor_prompt_variable_zzyz ="masukan var ke 2=";
cout << raptor_prompt_variable_zzyz ;
cin >> b;
c =a;
a =b;
b =c;
cout << "variabel ke 1 ="+a << endl; cout << "variabel ke 2 ="+b << endl; cout << " " << endl; cout << "hasil pertukaran kedua variabel" << endl; cout << " " << endl; cout << "variabel ke 1 = "<<a;cout<<"variabel ke 2 = "<<b;
return 0;
}
HASIL C++ :
Tidak ada komentar:
Posting Komentar