Algoritma3.1

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { int x, y; // Input values for x and y cout << "Masukan Nilai X: "; cin >> x; cout << "\nMasukan Nilai Y: "; cin >> y; int sum = x + y; int diff = x - y; cout << endl << endl; cout << "Hasil Dari X + Y adalah \t: " << sum << endl; cout << "Hasil Dari X - Y adalah \t: " << diff << endl; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines