commit d388ef9c8289cd1b6d7a6f99c2eadcd972a2805f
parent 390a9048d8c646fa6440a06be082f6349e06fb96
Author: Amit Dutta <amitdutta4255@gmail.com>
Date: Tue, 7 Oct 2025 20:45:37 +0530
new 28
Diffstat:
1 file changed, 19 insertions(+), 0 deletions(-)
diff --git a/letusc/luc028.c b/letusc/luc028.c
@@ -0,0 +1,18 @@
+/* Write a program to print all the ASCII values and their equivalent
+characters using a while loop. The ASCII may vary from 0 to 255. */
+/* Author - Amit Dutta, Date - 7th OCT, 2025 */
+/* Let Us C, Chap- 5, Page - 87, Qn No.: B(a) */
+
+#include <stdio.h>
+int main()
+{
+ int i = 0;
+ printf("ASCII Value\tCharacter");
+ printf("\n-----------\t---------\n");
+ while (i <= 255)
+ {
+ printf("%d.\t%c\n\n", i, i);
+ i++;
+ }
+ return 0;
+}+
\ No newline at end of file