C program to print horizontal line

Problem statement

Write a program to print following horizontal line as 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.

Help others by sharing the content!

Leave a Comment

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