bsc

Comprehensive codebase and coursework for the 4-year B.Sc. Computer Science Honours degree (WBSU)

git clone https://github.com/notamitgamer/bsc.git
· rebuilt hourlyOpen on GitHub
root / semester_1 / letusc / luc028.c

luc028.c (414B)


      1 /* Write a program to print all the ASCII values and their equivalent
      2 characters using a while loop. The ASCII may vary from 0 to 255. */
      3 /* Let Us C, Chap- 5, Page - 87, Qn No.: B(a) */
      4 
      5 #include <stdio.h>
      6 int main()
      7 {
      8     int i = 0;
      9     printf("ASCII Value\tCharacter");
     10     printf("\n-----------\t---------\n");
     11     while (i <= 255)
     12     {
     13         printf("%d.\t%c\n\n", i, i);
     14         i++;
     15     }
     16     return 0;
     17 }