Tugas3.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; // Nama : Junita Laras Wati // NIM : 3420230028 int main() { int x, y; cout << "\n==================================" << endl; cout << " Contoh Operator Perbandingan\n"; cout << "==================================" << endl; cout << "Masukan nilai x : "; cin >> x; cout << "\nMasukan nilai y : "; cin >> y; cout << "\n==================================" << endl; cout << "Nilai x adalah : " << x << endl; cout << "Nilai y adalah : " << y << endl; cout << "==================================" << endl; cout << "Hasil dari " << x << " == " << y << " : " << (x == y) << endl; cout << "Hasil dari " << x << " != " << y << " : " << (x != y) << endl; cout << "Hasil dari " << x << " > " << y << " : " << (x > y) << endl; cout << "Hasil dari " << x << " < " << y << " : " << (x < y) << endl; cout << "Hasil dari " << x << " >= " << y << " : " << (x >= y) << endl; cout << "Hasil dari " << x << " <= " << y << " : " << (x <= y) << endl; cout << "==================================" << endl; cout << "Nama : Junita Laras Wati" << endl; cout << "Mobile : 085819287572"; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines