Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x,y;
- //masukkan bilangan bulat positif atau negatif
- cout << "Bilangan Pertama = ";
- cin >> x;
- cout << "Bandingkan dengan \n" << "Bilangan Kedua = ";
- cin >> y;
- cout << "Nilai " << x << " terhadap " << y << " adalah = ";
- if(x >= y)
- {
- cout << "Lebih Besar";
- }
- else
- {
- cout << "Lebih Kecil";
- }
- cout << "\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement