Algoritma 4.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { int a , b; /* penggunaan notasi didepan variable */ a=10; b=5; printf ("Nilai A \t\t = %d", a); printf ("\n Nilai ++A \t\t = %d", ++a); printf ("\n Nilai B \t\t = %d", b); printf ("\n Nilai --B \t\t = %d", --b); cout<<endl<<endl; /* penggunaan notasi dibelakang variable */ a=10; b=5; printf ("Nilai A \t\t = %d", a); printf ("\n Nilai A++ \t\t = %d", a++); printf ("\n Nilai B \t\t = %d", b); printf ("\n Nilai B-- \t\t = %d", b--); cout<<endl<<endl; printf("Nilai A sekarang \t= %d\n", a); printf("Nilai B sekarang \t= %d", b); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines