لیں جی جنرک پروگرام حاضر ہے۔
#include<math>
#include<fstream>
char a[20];
ofstream file;
int n;
void main()
{
for(int j=0;j<=20;j++)
a[j]='a';
file.open("o.txt");
cout<<"Enter n";
cin>>n;
// All possible words count
long max=pow(26,n);
for(long k=1;k<max>=0; index--)
{...