Algoritma4.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { //Yazid Rizqi //3420230012 //Teknik Informatika semester 3 int a, b; /* Penggunaan notasi di depan variabel */ a=10, b=5; printf("Nilai A \t\t: %d", a); printf("\nNilai ++A \t\t: %d", ++a); printf("\nNilai B \t\t: %d", b); printf("\nNilai --B \t\t: %d", --b); cout<<endl<<endl; /* Penggunaan notasi di belakang variabel */ a=10, b=5; printf("Nilai A \t\t: %d", a); printf("\nNilai A++ \t\t: %d", a++); printf("\nNilai B \t\t: %d", b); printf("\nNilai B-- \t\t: %d", b--); cout<<endl<<endl; printf("Nilai A sekarang \t: %d", a); printf("\nNilai B sekarang \t: %d", b); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines