forked from bilal1718/C-Assignments
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQ6.cpp
More file actions
29 lines (29 loc) · 761 Bytes
/
Q6.cpp
File metadata and controls
29 lines (29 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <iostream>
using namespace std;
int main()
{
string name;
double roll_no;
string user_name;
string password;
string login_entry,password_entry;
cout<<"Registration Process"<<endl;
cout << "Enter name: ";
cin>>name;
cout << "Create roll number: ";
cin>>roll_no;
cout << "Create user name: ";
cin>>user_name;
cout << "Create password: ";
cin>>password;
cout << "Login Process"<<endl;
cout << "Enter your user name: ";
cin>>login_entry;
cout << "Enter password: ";
cin>>password_entry;
if (login_entry==user_name && password_entry==password){
cout << "Welcome! Login Successful";
}else{
cout << "Login Failed! Try Again";
}
}