how can u draw a rectangle in C
Answer Posted / ramesh b penchal
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int driver,mode,x1,y1,x2,y2;
driver=DETECT;
initgraph(&driver,&mode,"c:\\tc\\bgi");
printf("Enter(x1,y1) and (x2,y2) co-ordinate values");
scanf("%d%d %d%d",&x1,&y1,&x2,&y2);
rectangle(x1,y1,x2,y2);
getche();
closegraph();
}
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??
How to palindrom string in c language?
Design an implement of the inputs functions for event mode
why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?
create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail
how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.
write a program for area of circumference of shapes
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines
Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.
Write a routine to implement the polymarker function
Write a program to model an exploding firecracker in the xy plane using a particle system
how to test pierrot divisor
write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30