How can draw a box in cprogram without using graphics.h
header file & using only one printf(); ?

Answer Posted / veeramalliga

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("\n----------------\n");
printf("\n| |\n");
printf("\n| |\n");
printf("\n-----------------\n");
getch();
}

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between main and void main?

630


Explain c preprocessor?

684


Can you please explain the difference between strcpy() and memcpy() function?

603


Explain the red-black trees?

610


How to create struct variables?

595






Explain built-in function?

594


How do I convert a string to all upper or lower case?

630


Write a program to swap two numbers without using third variable in c?

619


Is boolean a datatype in c?

548


What is restrict keyword in c?

646


What is volatile, register definition in C

692


What standard functions are available to manipulate strings?

565


What is int main () in c?

628


What is the difference between exit() and _exit() function in c?

584


What is the use of a semicolon (;) at the end of every program statement?

776