Skip to content

Instantly share code, notes, and snippets.

@jagdish4501
Created March 30, 2021 07:39
Show Gist options
  • Save jagdish4501/286d1f8cc40b30f8761136b355adeb8c to your computer and use it in GitHub Desktop.
Save jagdish4501/286d1f8cc40b30f8761136b355adeb8c to your computer and use it in GitHub Desktop.
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.
#include <stdio.h>
int main()
{
int a = 0;
while (a <= 225)
{
printf("ASCII value of %d is=%c\n", a, a);
a++;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment