google.com, pub-6167773875660516, DIRECT, f08c47fec0942fa0 Write a c program to print ascii value of an entered character - 2nd puc computer science

Write a c program to print ascii value of an entered character

Write a c program to print ascii value of an entered character

write a c program to print ascii value of a character,write a program to print ascii value of a character,write a program to print the ascii value of a character input by the user

#include<stdio.h>

#include<conio.h>

void main()

{

char ch;

clrscr();

printf("Enter the character: ");

scanf("%c",&ch);

printf("ASCII value of %c=%d",ch,ch);

getch();

}

Output:

Enter the character: A

ASCII value of A=65                                                                                                            


Write a c program to print ascii value of an entered character Write a c program to print ascii value of an entered character Reviewed by Vision Academy on December 22, 2021 Rating: 5

No comments:

CheckOut

Powered by Blogger.