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

1. Which representation does not show y as a function of x? A) Answer F B) Answer G C) Answer H D) Answer J 2. Which set of ordered pairs represents y as a f
In an experiment, the independent variable _____.
What is the multiplicative inverse of 2 1/2? A) 2/3 B) 2/5 C)2
A 12 lb shankless ham contains 16 servings. What is the rate in servings per pound?
Who would be a member of the American dental association? A) a practicing dentist B) a retired dentist C) a dental student D) a dental patient
Where was Ron Terada born?
Julia was born in france. for the first 3 years of her life, she spoke both french and english. then she moved to the united states. from age 3 on, she only spo
PLEASE HELP ME I WILL GIVE BRAINLIST
Dolphins and fish have similar body shapes. is this feature more likely a homologous or analogous trait?
Where was Ron Terada born?