• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
August 19, 2022 |600 Views
C Program to Print Alphabets from A to Z Using Loop
  Share   Like
Description
Discussion

In this video, we will write a C program to print alphabets from A to Z using Loop. 

Algorithm that we will be using here is:
1. Iterate a loop from A to Z. 
2. After each and every execution print the alphabet. 

Here we see 3 iterative methods
1. Using for loop 
2. Using while loop 
3. Using the Do-While loop 

Apart from that, we will see the time and space complexity of these approaches i.e. 
1. Time complexity: O(N) 
N represents a number of alphabets = 26. 

2. Space complexity: O(1)

C program to print alphabets from A to Z using Loop
https://www.geeksforgeeks.org/program-to-print-alphabets-from-a-to-z-using-loop/