Problem Description
Write a program which reads your name from the keyboard and output a list of ANCII codes, which represent your nameCODING ARENA
#include <stdio.h>
int main()
{
char name[50];
int j=0;
scanf("%s",name);
while(name[j]!='\0')
{
printf(" %d",name[j]);
j++;
}
return 0;
}
Test Case 1
Input (stdin)SRMUNIVERSITY
Expected Output83 82 77 85 78 73 86 69 82 83 73 84 89
Test Case 2
Input (stdin)srm
Expected Output115 114 109
No comments:
Post a Comment