Tugas3.1

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; // Nama: Roni kurnia // NIM: 3420230002 int main() { int x,y; cout << "===============================\n"; printf("Masukan Nilai X:\t"); cin>>x; printf("\nMasukan Nilai y:\t \n"); cin>>y; cout << "===============================\n"; printf("Nilai x adalah:\t\t %d", x); printf("\nNilai y adalah:\t\t %d", y); cout << "\n===============================\n"; int tambah = x + y, kurang = x - y, kali = x * y, bagi = x / y; printf("Hasil dari X + Y:\t %d \n", tambah); printf("Hasil dari X - Y:\t %d \n", kurang); printf("Hasil dari X * Y:\t %d \n", kali); printf("Hasil dari X / Y:\t %d \n", bagi); cout << "===============================\n"; cout << "Roni Kurnia\n"; cout << "Razzu4249@gmail.com\n"; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines