Write a C++ Language Program To Create an Account
- Ask User Name
- Ask User CNIC
- Ask User Password
****************************************************************************************************************************************************************************************************************
#include <iostream>
#include<windows.h>
#include<string>
using namespace std;
int main()
{
int x=4;
string a,b,c,d,e;
cout<<"Enter your name\n";cin>>a;
cout<<"Enter your CNIC\n";cin>>c;
do
{
if(!(x==4))
{
system("clear");
}
cout<<"Enter your password ";
if(!(x==4))
{
cout<<"again\n";
}
cin>>b;
cout<<"Enter your password again to confirm\n";cin>>d;
if(!(b==d))
{
cout<<"password does not match try again\n";
}
x--;
}
while(!(b==d));
if(b==d)
{
cout<<"you have created your account succesfully \n";
cout<<"the program will be finished \n";
}
return 0;
}
****************************************************************************************************************************************************************************************************************
OUTPUT :
Comments
Post a Comment