Answer:
I am going to write a C program. The program is in the explanation. You use a simple while loop controled by a counter(don't forget to initialize nor increment the counter). Inside the while loop, you printf the ASCII value as a %d and the equivalent character as a %c.
Step-by-step explanation:
#include <stdio.h>
int main(){
int i = 0;
/*While loop*/
while(i < 256){
printf("ASCII value: %d\\", i);
printf("ASCII character: %c\\", (char)i);
i++;
}
return 0;
}