Answer to Question #266955 in C++ for Abdirazaq korea

Question #266955

write programm Array in user password vesual

1
Expert's answer
2021-11-16T07:45:03-0500
#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;
}


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS