C program which reads your name from the keyboard and outputs a list of ASCII codes which represent your name

C program which reads your name from the keyboard and outputs a list of ASCII codes which represent your name

#include<stdio.h>
#include<conio.h>

void main()
{
int i;
char name[50];
clrscr();
printf(“Enter your name: “);
gets(name);
printf(“nCharactertASCII Code“);

for(i=0;name[i]!=”;i++)
printf(“n%ctt%d”,name[i],name[i]);

getch();
}

1 thought on “C program which reads your name from the keyboard and outputs a list of ASCII codes which represent your name”

Leave a Comment

Your email address will not be published. Required fields are marked *