Mega Code Archive
Categories
/
C
/
Code Snippets
While loop to print char
#include
int main() { char ch; ch = 'r'; while ( ch <= 'w' ) printf ( "%c", ch++ ); printf ( "\n" ); }