Write a program in C to print all the ASCII values and their equivalent characters using a while loop. The ASCII values vary from 0 to 255

Write a program in C to print all the ASCII values and their equivalent characters using a while loop. The ASCII values vary from 0 to 255

            #include <stdio.h>
            #include <conio.h>
            void main() {
                        int i=0; char a;
                        clrscr();
                        while(i<=255) {
                                    a=i;
                                    printf("\n%c = %d",a,i);
                                    i=i+1;
                        }
                        getch();
            }


Post a Comment