Answers for "C# program that print charater from A to Z and it's corresponding number"

C#
0

C# program that print charater from A to Z and it's corresponding number

#include <stdio.h>
int main() {
    char c;
    printf("Enter u to display uppercase alphabets.n");
    printf("Enter l to display lowercase alphabets. n");
    scanf("%c", &c);

    if (c == 'U' || c == 'u') {
        for (c = 'A'; c <= 'Z'; ++c)
            printf("%c ", c);
    } else if (c == 'L' || c == 'l') {
        for (c = 'a'; c <= 'z'; ++c)
            printf("%c ", c);
    } else {
        printf("Error! You entered an invalid character.");
    }

    return 0;
}
Posted by: Guest on January-26-2022

Code answers related to "C# program that print charater from A to Z and it's corresponding number"

C# Answers by Framework

Browse Popular Code Answers by Language