#include <stdio.h>
void printstr(char arr[]);
int main() {
char firstname[100];
char lastname[100];
printf("enter firstname : \n");
scanf("%s", firstname);
printf("enter lastname :\n");
scanf("%s", lastname);
printf("Your firstname is : %s \n", firstname);
printf("Your lastname is : %s \n", lastname);
return 0;
}
//void printstr(char arr[]) {
//for(int i=0; arr[i] != '\0'; i++) {
// printf("%c", arr[i]);
// }
To embed this program on your website, copy the following code and paste it into your website's HTML: