#include<iostream>
using namespace std;
int main() {
string nama;
int angka1, angka2;
cout << "Kalkulator Sederhana" << endl << endl;
cout << "Masukan ID anda = ";
cin >> nama;
if (nama == "Lord"){
cout << "Berhasil Login" << endl;
cout << "Kalkulator Sederhana" << endl << endl;
cout << "Masukan Bilangan Pertama = ";
cin >> angka1;
cout << "Masukan Bilangan Kedua = ";
cin >> angka2;
cout << endl << "Hasil Operasi = " << endl;
cout << "Penjumlahan = " << angka1 + angka2 << endl;
cout << "Pengurangan = " << angka1 - angka2 << endl;
cout << "Perkalian = " << angka1 * angka2 << endl;
cout << "Pembagian = " << angka1 / angka2 << endl;
cout << "Modulus = " << angka1 % angka2 << endl;
}
else{
cout << "Nama Anda Salah";
}
return 0;
}
using namespace std;
int main() {
string nama;
int angka1, angka2;
cout << "Kalkulator Sederhana" << endl << endl;
cout << "Masukan ID anda = ";
cin >> nama;
if (nama == "Lord"){
cout << "Berhasil Login" << endl;
cout << "Kalkulator Sederhana" << endl << endl;
cout << "Masukan Bilangan Pertama = ";
cin >> angka1;
cout << "Masukan Bilangan Kedua = ";
cin >> angka2;
cout << endl << "Hasil Operasi = " << endl;
cout << "Penjumlahan = " << angka1 + angka2 << endl;
cout << "Pengurangan = " << angka1 - angka2 << endl;
cout << "Perkalian = " << angka1 * angka2 << endl;
cout << "Pembagian = " << angka1 / angka2 << endl;
cout << "Modulus = " << angka1 % angka2 << endl;
}
else{
cout << "Nama Anda Salah";
}
return 0;
}