Professional Documents
Culture Documents
OTPgenerator
OTPgenerator
#include<unistd.h>
#include<stdlib.h>
#include<time.h>
using namespace std;
switch(choice)
{
case 1: system("CLS");
cout<<"New OTP : "<<OTPgenerator(n).c_str()<<endl;
sleep(5);
break;
case 2: exit(0);
break;
}
}
int main() //main function
{
int n;
cout<<"Enter length :";
cin>>n;
OTPgenerator(n);
return 0;
}