|
Programmer
Join Date: Mar 2005
Location: Lubbock, TX
Posts: 30
Rep Power: 0 
|
solved
I'm really glad you asked me to put the code, because it now is working, even though i had that blasted getchar(); in there, heres the code still if you could figure out why it mighta done it: #include <stdio.h>
int main()
{
char a,b,c,d,e;
int aa,bb,cc,dd,ee;
printf("Press Enter");
getchar();
for(aa=0;aa<=2000;aa++)
{
for(a='A';a<='Z';a++)
{
printf("%c\n",a);
}
a='D';
}
for(bb=0;bb<=2000;bb++)
{
for(b='a';b<='z';b++)
{
printf("%c%c\n",a,b);
}
b='a';
}
for(cc=0;cc<=2000;cc++)
{
for(c='a';c<='z';c++)
{
printf("%c%c%c\n",a,b,c);
}
c='v';
}
for(dd=0;dd<=2000;dd++)
{
for(d='a';d<='z';d++)
{
printf("%c%c%c%c\n",a,b,c,d);
}
d='i';
}
for(ee=0;ee<=1985;ee++)
{
if(ee<=1985)
{
for(e='a';e<='z';e++)
{
printf("%c%c%c%c%c\n",a,b,c,d,e);
}
}
if(ee==1985)
{
for(e='z';e>'a';e--)
{
if(e>='e')
printf("%c%c%c%c%c\n",a,b,c,d,e);
if(e=='d')
break;
}
}
}
printf("\n%c%c%c%c%c\nFound It!\n\n",a,b,c,d,e);
printf("Press Enter");
getchar();
}
Thanks for y'alls help
David
|