Quick actions

cmd+k|ctrl+k

Navigation

Languages

Algoritma3.2lose

Snippet info

Language

Cpp

Visibility

public

Author

mikoshiba27

Created

2024-10-26T09:01:04.459665Z

Updated

2024-10-26T09:02:04.069889Z

#include <iostream>
using namespace std;

int main() {
    //Nama: Miko Ardiansyah
    //Nim: 3420230005
    puts("=================================");
    puts(" Contoh Operator Perbandingan");
    puts("=================================");

    float a, b, c, d;
    int x = 8, y = 4;

    cout << "Nilai x adalah = " << x << endl;
    cout << "Nilai y adalah = " << y << endl;


    puts("=================================");
    cout << "Hasil dari x == y adalah " << a << endl;
    cout << "Hasil dari x != y adalah " << b << endl;
    cout << "Hasil dari x > y adalah  " << c << endl;
    cout << "Hasil dari x < y adalah  " << d << endl;
    puts("=================================");

    return 0;
}
INFO