Coding :
#include <stdio.h>
#include <conio.h>
int main() {
char me[20];
printf("What is your name?");
scanf("%s", &me);
printf("Hello, %s! Welcome to C", me);
getch();
}
Output:
#include <stdio.h>
#include <conio.h>
int main() {
char me[20];
printf("What is your name?");
scanf("%s", &me);
printf("Hello, %s! Welcome to C", me);
getch();
}
Output:
No comments:
Post a Comment