write programm Array in user password vesual
#include <iostream>
#include <iomanip>
using namespace std;
int main(){
char password[10]="password";
char userPassword[10];
cout<<"Enter password: ";
cin>>userPassword;
if(strcmp(userPassword,password)==0){
cout<<"Correct password\n";
}else{
cout<<"Wrong password\n";
}
int k;
cin>>k;
return 0;
}
Comments
Leave a comment