Wednesday, 4 June 2014

Write Your name with ASCII code

main()
{
int i,m=0;
char a[50];
puts("Enter your name ::");
gets(a);
for (i=0;a[i]!='\0';i++)
{
printf("ASCII name =%d\n",a[i]);
m++;
}
printf("no of char in your name=%d",m);
}

No comments: