Printing ASCII value in Octal

//Printing ASCII value in Octal
#include<stdio.h>
#include<conio.h>
int main()
{
char a;
clrscr();
printf("Enter a Character\n");
scanf("\n%c",&a);
printf("\nASCII value in Octal is %o",a);
getch();
return 0;
}

To Run this Program Copy it in text editor and save as .c
Then double click on it and then it will get opened in your compiler.
Click on run.

No comments:

Post a Comment