algoritma 4.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; //nama : yoga dwi kurniawan //nim : 3420230019 int main() { int a, b; // Pengisian nilai awal a = 10; b = 5; // Penggunaan Notasi Didepan Variabel cout << "Nilai A \t\t= " << a << endl; cout << "Nilai ++A \t\t= " << ++a << endl; cout << "Nilai B \t\t= " << b << endl; cout << "Nilai --B \t\t= " << --b << endl << endl; // Pengisian nilai awal kembali a = 10; b = 5; // Penggunaan Notasi Dibelakang Variabel cout << "Nilai A \t\t= " << a << endl; cout << "Nilai A++ \t\t= " << a++ << endl; cout << "Nilai B \t\t= " << b << endl; cout << "Nilai B-- \t\t= " << b-- << endl << endl; // Nilai setelah operasi cout << "Nilai A sekarang \t= " << a << endl; cout << "Nilai B sekarang \t= " << b << endl; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines