60 472
Assignments Done
98,1%
Successfully Done
In April 2018

Answer to Question #26691 in C++ for Mohammead Zakir Hussain

Question #26691
How can i display A to Z characters using while loop in c++
Expert's answer
#include <iostream>

using namespace std;

int main()
{
char c = 'A'; // define variable c and set it to 'A'
while(c <= 'Z') // while c not equal to 'Z'
{
cout << c << " "; // print c
c++; // increment c
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions