mbhtkn3191 mbhtkn3191
  • 18-10-2019
  • Computers and Technology
contestada

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.

Respuesta :

joaobezerra joaobezerra
  • 18-10-2019

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.

Explanation:

#include <stdio.h>

int main(){

int i = 0;

/*While loop*/

while(i < 256){

printf("ASCII value: %d\n", i);

printf("ASCII character: %c\n", (char)i);

i++;

}

return 0;

}

Answer Link

Otras preguntas

In 1990 an egg cost 2c less than in 1991. In 1992 an egg cost 4c more than in 1991. The cost of 11 eggs in 1990 was the same as the cost of 8 eggs in 1992. Find
Ways in which media can ensure access of information to all communities.
The equation shown below is true for which value of x? 5(x + 2) - 3(x - 6) = 7x
If you create an app similar to brainly, what things you gonna to change in this ?​
You are studying economic development in a small developing country. You do not have individual income data but you do have counts of how many people fall into
Write a report on the industrial revolution !!don't plagerize!! i will give brainliest !!
3 and 3/4 - 2 and 1/5
how substance abuse may affect learner's academic performance?​
make a list of different parts of air passage.
answer this question i will give u brainliest