Tugas3.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; //Nama: Fara Novri Hasbel Wijaya //NIM: 3420230017 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 : Fara Novri Hasbel Wijaya"); puts("NIM : 3420230017"); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines