Skip to content
  • Home
  • YouTube
  • About
  • Contact
Learn to Code and Code to Learn

Learn to Code and Code to Learn

Your Journey to Code Mastery

  • Interview Prep Sheet
    • TCP DSA 75
    • TCP DSA 150
    • TCP DSA 351
    • TCP HLD 50
    • TCP HLD 101
  • General
    • Setup
    • Mastering in C programming (Crash Course)
  • DSA Patterns
    • Fast and Slow Pointer
    • sliding window
      • fixed size sliding window
      • Variable size sliding window
  • Coding Prep
    • Leetcode Problems
      • Leetcode Practice
      • Leetcode PTOD
      • TCP DSA 150
    • GFG
      • GFG Practice
      • GFG PTOD
    • Company wise Interview Questions
      • Google
      • Microsoft
  • Programming
    • C Programming
    • C++
      • C++-11
      • c++-14
      • STL
    • Python
  • HLD
    • TCP HLD 50
    • TCP HLD 101
  • LLD
    • SOLID Principle
    • Design Pattern
      • Creational Design Patterns
        • Singleton
  • Toggle search form

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

Posted on December 17, 2023 By thecodepathshala No Comments on C program to print all alphabets from a to z using while loop

Example

Input

Output

Alphabets: a, b, c, d, e, ... , z
/**
 * C program to print all alphabets using while loop
 */

#include <stdio.h>

int main()
{
    char ch = 'a';

    printf("Alphabets from a - z are: \n");
    while(ch<='z')
    {
        printf("%c\n", ch);
        ch++;
    }

    return 0;
}

Program to display alphabets using ASCII value

/**
 * C program to display all alphabets using while loop
 */

#include <stdio.h>

int main()
{
    int ch = 97;

    printf("Alphabets from a - z are: \n");
    while(ch<=122)
    {
        printf("%c\n", ch);
        ch++;
    }

    return 0;
}

/*
Output :

Alphabets from a - 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
*/
C Programming, Programming Tags:C Programming

Post navigation

Previous Post: C program to print natural numbers in reverse from n to 1
Next Post: C program to print all even numbers from 1 to n

More Related Articles

C program to check Leap Year C Programming
Day-2 / Part – 1 : Basic Input and Output in C Mastering in C programming (Crash Course)
Array in C programming Array in C
C program to find LCM of two numbers C Programming
C program to find maximum between two numbers using switch case C Programming
C program to find all factors of a number C Programming

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • May 2026
  • August 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • September 2023
  • February 2023
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021

Categories

  • Algo
  • Array in C
  • C Programming
  • C++
  • C++
  • Company Wise
  • Competitive Programming
  • Design Pattern
  • DS
  • DS & Algo
  • Fast and Slow Pointer
  • fixed size sliding window
  • General
  • GFG
  • GFG PTOD
  • HLD
  • hld101
  • Interview Prep Sheet
  • Interview Questions
  • Leetcode Problems
  • Leetcode PTOD
  • LLD
  • Low-level design
  • Mastering in C programming (Crash Course)
  • Neetcode 150
  • Programming
  • Roadmap
  • Setup
  • Setup
  • sliding window
  • SOLID Principle
  • STL
  • string in c
  • System Design
  • TCP DSA 150
  • TCP DSA 351
  • TCP DSA 75
  • TCP HLD50
  • Top X
  • Variable size sliding window

Tags

algorithm array basic c++ coding interview C Programming Crash Course data structure and algorithm design pattern dsa easy Fixed size sliding window fubctions GFD gfg GFG PTOD hard HLD jump game LC PTOD leetcode Leetcode PTOD Leetcode Top Interview 150 LLD loop loops Low-level design Mastering C Programming in 15 Days matrix medium rotate array searching&sorting sliding window solid STL string string in c sunction in c system design TCP HLD50 TCP HLD101 Template in C++ Top Top 20 coding patterns to master MAANG Interview Top interview 150

Important!!
Is DSA required for FAANG interview šŸ‡®šŸ‡³ā™„ļø
Bug free code | prod ready #google #leetcode #codeprep #codeadventure #codeeveryday
2 sum in O(n) #google #microsoft
Design a system for 10 million users #Design #google #microsoft #interview
System design basic #systemdesign #apple #google
LeetCode #1 – Two Sum | Under 3 Minutes #leetcode #viral #codeeveryday #codelife
šŸš€ LeetCode #1 – Two Sum Explained in Under 2 Minutes!
Learn the most asked coding interview problem using the Hash Map approach and understand why it runs in O(n) time instead of O(n²).
In this Short, you'll learn:
āœ… Problem statement
āœ… Optimized Hash Map approach
āœ… Step-by-step dry run
āœ… Time & Space Complexity
āœ… Interview tips
If you're preparing for FAANG, Microsoft, Amazon, Google, or any software engineering interview, this series is for you.
šŸ‘ Like the video if it helped.
šŸ’¬ Comment which LeetCode problem I should explain next.
šŸ”” Subscribe for daily DSA, Golang, System Design, and Coding Interview content.
#leetcode #twosum #dsa #coding #programming #cpp #golang #interview #softwareengineer #shorts #codinginterview #algorithms #datastructures
šŸš€ LeetCode #1 – Two Sum Explained in Under 3 Minutes! #leetcode #viral #codeeveryday #codelife
Queue #codinginterview #education #databaseconcepts #algorithmanalysis #spacecomplexity #dsa
Load More... Subscribe

TCP DSA

75
150
351

TCP HLD

50
101

Recent Posts

  • CAP THEOREM
  • TCP DSA 351
  • TCP HLD 101
  • TCP HLD 50
  • TCP DSA-150

    Recent Comments

    1. Odell Volner on C program to print multiplication table of a given number
    2. Crista Diegidio on C program to print multiplication table of a given number
    3. Daniel Pauling on C program to print multiplication table of a given number
    4. Tonisha Hepp on C program to print multiplication table of a given number
    5. Jorge Layng on C program to print multiplication table of a given number

    Copyright © 2026 Learn to Code and Code to Learn.

    Powered by PressBook Blog WordPress theme