Quick actions

cmd+k|ctrl+k

Navigation

Languages

tugas 3.2

Snippet info

Language

Cpp

Visibility

public

Author

yoga-dwi-kurniawan

Created

2024-10-26T09:07:46.69457Z

Updated

2024-10-26T09:10:15.937586Z

#include <iostream>
using namespace std;
// nama : yoga dwi kurniawan
// nim : 3420230019

int main() {
    int x = 8;
    int y = 9;

    cout << "Contoh Operator Perbandingan" << endl;
    cout << "==============================" << 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  : Yoga dwi kurniawan" << endl;
    cout << "Mobile: 089680067080" << endl;

    return 0;
}
INFO