Computer Science, asked by biljobaby123, 7 hours ago

circular priter for a to z alphabets using python

Answers

Answered by loknadamjinaga1044
0

The task is to print the alphabets from A to Z using a loop.

Recommended: Please try your approach on {IDE} first, before moving on to the solution.

In the below program, for loop is used to print the alphabets from A to Z. A loop variable is taken to do this of type ‘char’. The loop variable ‘i’ is initialized with the first alphabet ‘A’ and incremented by 1 on every iteration. In the loop, this character ‘i’ is printed as the alphabet.

Program:

// C++ program to find the print

// Alphabets from A to Z

#include <bits/stdc++.h>

using namespace std;

int main()

{

// Declare the variables

char i;

// Display the alphabets

cout << "The Alphabets from A to Z are: \n";

// Traverse each character

// with the help of for loop

for (i = 'A'; i <= 'Z

Similar questions