/* Source code to find ASCII value of a character entered by user */

#include <stdio.h>
int main(){
	char c;
	
	printf("Enter a character: ");
	scanf("%c",&c);        /* Takes a character from user */

	printf("ASCII value of %c = %d\n",c,c);
	
	if(c < 97)
	{
		printf("%c is a capital letter.\n", c);
		printf("I want %c to be a small letter, what do I do?\n\n", c);
	}
	else
	{
		printf("%c is a small letter.\n", c);
		printf("I want %c to be a capital letter, what do I do?\n\n", c);
	}

	printf("I can change the value of %c by adding to the value of c.\n", c);
	printf("As an example if c was a/an %c I could make ",c);
	printf("it a/an %c by adding 1\n\n",c+1);

	printf("I can print my name by using ascii characters\n");
    /* Y is printed using binary,
     * v is printed uisng hex,
     * o is printed uisng octal,
     * n is printed using hex  */
	printf("See %c%c%c%c\n",0b01011001,0x76,111,0x6E);


	return 0;
}