C program to print horizontal line

Problem statement

Write a program to print following horizontal line as output.
**************************************************************************************

Program

Output

In above program we called a function ‘charline()’ from main.
In charline() we use while loop with 20 as limit of line.
Instead of * you can give any symbol to print line.

Ankit Wasankar

Senior Java Developer
Java 11 | Microservices | Reactjs | SQL

Help others by sharing the content!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.