#include <stdio.h>
#include <string.h>
int main() {
char str1[20];
char str2[20];
char age1[20];
char age2[20];
int t=0;
int y=0;
fgets(str1, sizeof(str1), stdin);
fgets(str2, sizeof(str2), stdin);
str1[strlen(str1)-1]='\0';
for(int a=0; a<20; a++)
{
if(str1[a]==' ')
{
t=a;
}
// printf("%c", str1[a]);
}
if(!strncmp(str1, str2, t))
{
puts("name");
}
for(int i=t+1; str1[i]!='\0'; i++ ){
age[i]=str1[i];
}
for(int i=t+1; str1[i]!='\0'; i++ ){
age[i]=str1[i];
}
printf("%d\n", *age1);
if(!strcmp(str1, str2))
{
puts("age");
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: