C Language

June 6, 2023

How to use draw a line in C language


#include<stdio.h>
void drawline();  /*Function declaration*/
int main()
{
    drawline(); /*Function call*/
    return 0;
}
void drawline()  /*Function definition */
{
    int i;
    for(i=1; i<=80; i++)
    printf("-");
}

output


--------------------------------------------------------------------------------

by : Ajaj Khan

Quick Summary: