Answer to Question #252338 in C for Joyce

Question #252338

How to code this Enter·the·first·character:·C

Enter·the·second·character:·U

C

.

.

.

U


1
Expert's answer
2021-10-16T13:53:03-0400
#include <stdio.h>


int main(void) {
	
	char character1,character2;




	printf("Enter the first character: ");
	character1 = getchar();
	printf("Enter the second character: ");
	character2 = getchar();
	character2 = getchar();
    while(character1<=character2)
    {
        printf("%c\n", character1);
        character1++;
    }




	getchar();
	getchar();
	return 0;
}

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 the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS