Answer:
Following are the code in the c language
#include <stdio.h> // header file
int main() // main method
{
char name[90]; // variable name
printf("enter name:");
gets(name); // read name
printf("Greetings,"); // display message Greetings,
printf("%s\\",name); // display name
return 0;
}
Output:
Greetings, Rachel
Explanation:
Following are the description of code in C language .
- Read the input by using gets(). The gets() method is used for taking the input as a string .
- Print the message by using printf(). It will display the Greetings, Rachel in the console .