Chapter - 4: The Loop Control Structure

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


B
Sections
4
Exercises

A

B

C

D

E

1

2

3

4

5

6

7

8

9

#include<stdio.h>
#include<conio.h>
int main()
{
	int i=0;
	
	for(; i<256 ; i++)
		printf("\n%d = %c", i,i);
		
	getch();
	return 0;
}

© 2020 Garbage Valuegarbage value logo