Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int broj1, broj2;
- cin >> broj1 >> broj2;
- int sredna_cifra1 = (broj1 / 10) % 10;
- int sredna_cifra2 = (broj2 / 10) % 10;
- if(sredna_cifra1 == sredna_cifra2) {
- cout << "DA" << endl;
- }
- if(sredna_cifra1 > sredna_cifra2) {
- cout << "NE" << endl;
- }
- if(sredna_cifra1 < sredna_cifra2) {
- cout << "NE" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement