#include <iostream>int main() { std::string login; int password; char choice; while ( true ) { std::cout << "Please enter your login" << std::endl; std::cin >> login; std::cout << "Please enter the numeric password" << std::endl; std::cin >> password; std::cout << "Would you like to re-enter? N or n for yes" << std::endl; std::cin >> choice; if ( choice == 'n' || choice =='N' ) { break; } }}
Comments