belongs to collection: C++ Language Loop Programs with Examples
I have used CodeBlocks compiler for debugging purpose. But you can use any C++ programming language compiler as per your availability.
#include <iostream> using namespace std; int main() { int character=0; char ch='A'; do { character=int(ch); cout<<ch<<" "; character++; ch=char(character); } while(ch<='Z'); }
Result:
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
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
I have used CodeBlocks compiler for debugging purpose. But you can use any C++ programming language compiler as per your availability.
Result:
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
need an explanation for this answer? contact us directly to get an explanation for this answer