C program to read a name and print its 10 times using goto statement
Given a name (string) and we have to print its 10 times using goto in C language.
goto is a jumping statement, which transfers the program's control to specified label, in this program, we are reading a name (string) by the user and printing its 10 times.
Example:
Input:
Enter the name: Manju
Output:
Manju, Manju, Manju, Manju, Manju, Manju, Manju, Manju, Manju, Manju,
Program to print name (string) 10 times using goto in C
Output
This is how we can print name (string) 10 times, using goto statement? If you liked or have any issue with the program, please share your comment.
need an explanation for this answer? contact us directly to get an explanation for this answer