Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- char c1,c2,c3;
- cin >> c1 >> c2 >> c3;
- if(c1=='/' and c2=='/' and c3=='/') cout << "right" <<endl;
- else if(c1=='-' and c2=='/' and c3=='/') cout << "right" <<endl;
- else if(c1=='-' and c2=='-' and c3=='/') cout << "right" <<endl;
- else cout << "wrong" <<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement