How we print alphabets using while loop?

Showing Answers 1 - 19 of 19 Answers

Akhil

  • Oct 12th, 2006
 

/* We can print all alphbets using ASSCI cods */i=65while(i>=122){if (i<=90||i>=97) printf("t%c",i);i++;}

  Was this answer useful?  Yes

Sutapa

  • Oct 14th, 2006
 

#include<stdio.h>
#include<conio.h>

void main()
{
int i=65;
while(i<=122)
{if (i<=90||i>=97)
printf("%ct",i);
i++;
}
getch();
}

  Was this answer useful?  Yes

Kodumuri Navathkumar

  • Nov 3rd, 2006
 

#include<stdio.h>
#include<conio.h>

void main()
{
int i=65;
while(i<=122)
{if (i<=90||i>=97)
printf("%ct",i);
i++;
}
getch();
}

  Was this answer useful?  Yes

ramarao

  • Nov 19th, 2006
 

#include<stdio.h>

void main()

{

char x='a';

while(x<='z')

{

printf("%c",x);

x++;

}

}

  Was this answer useful?  Yes

ganesh

  • Dec 23rd, 2006
 

i think ur wrong pls check the program 1ce again

  Was this answer useful?  Yes

Vivek

  • Jan 4th, 2007
 

no the last one works absolutely right ....

  Was this answer useful?  Yes

jintojos

  • Jun 15th, 2008
 

#include<stdio.h>
#include<conio.h>
void main()
  {
        int alphabet=65;
        clrscr();
        while(alphabet<123)
           {
                 printf("%c",alphabet++);
                  if(alphabet==91)
                     {
                          alphabet=97;
                          printf("n");
                      }
           }
       getch();
  }

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions