luc028.c (550B)
1 /* 2 * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 3 * Repo: https://github.com/notamitgamer/bsc 4 * License: MIT 5 */ 6 7 /* Write a program to print all the ASCII values and their equivalent 8 characters using a while loop. The ASCII may vary from 0 to 255. */ 9 /* Let Us C, Chap- 5, Page - 87, Qn No.: B(a) */ 10 11 #include <stdio.h> 12 int main() 13 { 14 int i = 0; 15 printf("ASCII Value\tCharacter"); 16 printf("\n-----------\t---------\n"); 17 while (i <= 255) 18 { 19 printf("%d.\t%c\n\n", i, i); 20 i++; 21 } 22 return 0; 23 }