Naming Ceremony
Hermoine and Ron blessed with a baby. They need to name their child and the priest doesn't know the actual spelling of it. So, help them to get and display the child's name.
Input Format:
The input contains string which denotes the name of the child.
Output Format:
The output contains string which denotes the name of the child.
Note: Name should not contain spaces according to the astrology.
Sample Input:
Harry
Sample Output:
Harry
Answers
Answer:
c program for the naming ceremony :
Explanation:
Using the printf function's percent s format specifier, we may print the string. The string from the specified starting address to the null character "0" will be printed. The string's initial address is the name itself. So, if we enter a string name, the complete string will be printed.
syntax is as follows :
#include<stdio.h>
void main()
printf( "HARRY" );
getch();
Output : HARRY
#include<stdio.h> :
A header file with the tag #includestdio.h> contains the Slandered (str) Input Output (IO) Library/File. Because every C function in the build is declared in the stdio.h file
The main() function : is the program's entry point in the C programming language. When we run our C programme, the main() (main function) is directly under control and outputs the results to us.
Printf() : is another C function that can be used to print text. Printing "character, string, float, integer, etc." to the output screen is done using the print function.
Therefore, anything entered between printf() inverted commas (" ") will be displayed on the output screen.