#password checker using iostream
3 messages · Page 1 of 1 (latest)
// heres a version for you if you want it to repeat when you fail, take it if you want you dont need to remove this
#include <iostream>
int password;
int main()
{
std::cout << "enter ur password\n";
std::cin >> password;
while (password != 1234) {
std::cout << "wrong password, try again:\n";
std::cin >> password;
}
std::cout << "welcome to this secret base\n";
}