Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- //1. входни данни -> текст
- //2. проверка дали текстът съвпада с "s3cr3t!P@ssw0rd"
- //ако съвапада -> "Welcome"
- //ако не съвпада -> "Wrong password!"
- string text;
- cin >> text;
- if (text == "s3cr3t!P@ssw0rd")
- {
- cout << "Welcome";
- }
- else //противен случай: text != "s3cr3t!P@ssw0rd"
- {
- cout << "Wrong password!";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement