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
#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