int main() { char cont; char name[100], birth[100], address[100]; //to declared user name, birth and address double netIncome, tax; //to declared the user net income and total tax do{ cout << "Name: "; cin.getline(name, 100); cout << "Date of birth: "; cin.getline(birth, 100); cout << "Address: "; cin.getline(address, 100); cout << "\nDo you want to continue?(Y/N)"; cin >> cont; system("cls"); // clear screen }while(cont == 'Y' | cont == 'y'); system("pause"); return 0; } |
Name: Date of birth: |