Saturday, May 13, 2023

Write a C program to print all alphabets from a to z. – using while loop

 //Write a C program to print all alphabets from a to z. – using while loop

#include "stdio.h"

int main (){


char ch;

printf ("The series of all alphabets from a to z are :\n");

ch='a';

while(ch<='z'){

printf ("%c ",ch);

ch++;

}

return 0;

}

   output                    output                           output      

The series of all alphabets from a to z are :

a b c d e f g h i j k l m n o p q r s t u v w x y z                

No comments:

Post a Comment

print a multiplication table of any integer taking from user

 // print a multiplication table of any integer taking from user  #include "stdio.h" int main () { int n,mul,i; printf ("...