Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- char A;
- char B;
- char odgovor;
- cin >> A;
- cin >> B;
- cin >> odgovor;
- if (odgovor == 'D'){
- cout << B <<endl;
- }
- if(odgovor == 'N'){
- for(char c = 'A'; c <= 'C'; c++) {
- if(c != A and c != B) {
- cout << c << endl;
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment