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: NExplanation / Answer
#include <stdio.h>
int main()
{
int i=0;
for(;i<=255;i++){
printf("DECIMAL: %d CHARACTER: %c ",i,i);
}
return 0;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.