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
What is difference between main and void main?
Explain c preprocessor?
Can you please explain the difference between strcpy() and memcpy() function?
Explain the red-black trees?
How to create struct variables?
Explain built-in function?
How do I convert a string to all upper or lower case?
Write a program to swap two numbers without using third variable in c?
Is boolean a datatype in c?
What is restrict keyword in c?
What is volatile, register definition in C
What standard functions are available to manipulate strings?
What is int main () in c?
What is the difference between exit() and _exit() function in c?
What is the use of a semicolon (;) at the end of every program statement?