Skip to content

p058.c

Problem Statement

WAP to display ASCII code of Alphabets (A - Z) using void displayASCII()

Metadata

Property Detail
Author Amit Dutta (amitdutta4255@gmail.com)
License MIT

Actions

Raw View on GitHub

💡 You can print or save this file by opening Raw and using your browser.

Source Code

#include <stdio.h>

void displayASCII()
{
    int i;
    printf("ASCII Code\t\tCharacter");
    for (i = 'A'; i <= 'Z'; i++)
        printf("\n%c\t\t%d", i, i);
}

int main()
{
    displayASCII();
    return 0;
}