Tugas3.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; //Muhammad Afiful Rajab //3420230016 int main() { puts("=========================================="); puts(" Contoh Operator Perbandingan "); puts("=========================================="); float a,b,c,d,e,f, x=8, y=9; cout << "Masukan nilai x :"; cout << "\nMasukan nilai y :"; puts("\n=========================================="); a = x==y; b = x!=y; c = x>y; d = x<y; e = x>=y; f = x<=y; cout << "Nilai x adalah : " <<x<<endl; cout << "Nilai y adalah : " <<y<<endl; puts("=========================================="); cout << "Hasil dari 8 == 9 : " <<a<<endl; cout << "Hasil dar 8 != 9 : " <<b<<endl; cout << "Hasil dar 8 > 9 : " <<c<<endl; cout << "Hasil dar 8 < 9 : " <<d<<endl; cout << "Hasil dar 8 >= 9 : " <<e<<endl; cout << "Hasil dar 8 <= 9 : " <<f<<endl; puts("=========================================="); puts("Nama \t: Muhammad Afiful Rajab"); puts("Mobile \t: 0895403776789 "); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines