Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Programming in C language to be run on code blocks 4. Write a program that outpu

ID: 3881918 • Letter: P

Question

Programming in C language to be run on code blocks

4. Write a program that outputs the 255 characters of the ASCII table in both decimal form and it's ASCII character representation. For example, a piece of the output should look something like this: DECIMAL: 69 DECIMAL: 70 DECIMAL: 71 DECIMAL: 72 DECIMAL: 73 DECIMAL: 74 DECIMAL: 75 DECIMAL: 76 DECIMAL: 77 DECIMAL: 78 CHARACTER: E CHARACTER: F CHARACTER: G CHARACTER: H CHARACTER: I CHARACTER: J CHARACTER: K CHARACTER: L CHARACTER: M CHARACTER: N

Explanation / Answer

#include <stdio.h>

int main()
{
int i=0;
for(;i<=255;i++){
printf("DECIMAL: %d CHARACTER: %c ",i,i);
}
return 0;
}