does anyone know the code to output "Wrong password final try" on a 2nd unsuccessful password input? and then make the program go back to the default start position for the program below?
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
static const int password=1705898;
int main()
{
int secondnumber;
{
cout << "Enter Password: ";
cin >> secondnumber;
if (password == secondnumber)
{
cout << "Welcome Matthew ";
}
else
{
cout << "Password Rejected ";
}
}
system ("PAUSE");
return 0;
}