Tugas3.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; /* Adera Wahyu Sutrisno */ /* 3420230039 */ /* enginering informatics PPKM */ int main() { puts("======================================="); puts(" Contoh Operator Perbandingan "); puts("======================================="); puts("Masukan Nilai x :"); puts("Masukan Nilai y :"); puts("======================================="); float a, b, c, d, e, f, x=8, y=9; cout<<"Nilai x adalah :"<<8<<endl; cout<<"Nilai y adalah :"<<9<<endl; a = 8 == 9; b = 8 != 9; c = 8 > 9; d = 8 < 9; e = 8 >= 9; f = 8 <= 9; puts("======================================"); cout<<"Hasil dari 8 == 9 :" << a <<endl; cout<<"Hasil dari 8 != 9 :" << b <<endl; cout<<"Hasil dari 8 > 9 :" << c <<endl; cout<<"Hasil dari 8 < 9 :" << d <<endl; cout<<"Hasil dari 8 >= 9 :" << e <<endl; cout<<"Hasil dari 8 <= 9 :" << f <<endl; puts("======================================"); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines