Tugas 3.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; //Nama : Ramdika Rovansah //Nim : 3420230027 int main() { puts("=================================="); puts(" Contoh Operator Perbandingan"); puts("=================================="); float x; float y; float a = x == y; float b = x != y; float c = x > y; float d = x < y; float e = x >= y; float f = x <= y; cout<<"Masukan Nilai X \t:\n"; cin>>x; cout<<"Masukan Nilai Y \t:\n"; cin>>y; puts("=================================="); cout<<"Nilai X adalah \t\t:"<<x<<endl; cout<<"Nilai Y adalah \t\t:"<<y<<endl; puts("=================================="); cout<<"Hasih dari x == y \t:"<<a<<endl; cout<<"Hasih dari x != y \t:"<<b<<endl; cout<<"Hasih dari x > y \t:"<<c<<endl; cout<<"Hasih dari x < y \t:"<<d<<endl; cout<<"Hasih dari x => y \t:"<<e<<endl; cout<<"Hasih dari x <= y \t:"<<f<<endl; puts("=================================="); cout<<"Nama : Ramdika Rovansah\n"; cout<<"Mobile : 0856976581** \n"; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines