answersLogoWhite

0


Best Answer

void line(int length)

{

for(int i=0; i<length; ++i)

std::cout<<'_';

std::cout<<std::endl;

}

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make C plus plus program to draw a straight line using for loop method?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you join 4 lines in a drawing program?

It depends on what drawing program you're using. Most drawing programs, such as Corel Painter Essentials 4 or Microsoft Paint, you can easily draw straight lines using the "line" or "polygon" tool, and it will automatically let you draw straight lines that join.


When drawing a vector using the triangle method of addition how do you draw in the resultant vector?

When drawing a vector using the triangle method you will draw in the resultant vector using Pythagorean theorem. This is taught in physics.


What is a wrought pipe bend?

wrought pipe bends means straight pipe bend using rotary draw pipe bender. or pipe bend by any method


Why is it impossible to draw a line segment using Euclidean geometry?

It is impossible to draw a straight line.


When using the scientific method what comes first?

draw conclusions


Two things you can do by using scientific method?

answer hypothesis and draw conclusions


How can one draw a straight line?

One can draw a straight line by using a ruler. Should a ruler not be available, one can use the edge of a book or another piece of paper to guide the line straight.


When using the scientific method which come last?

Draw conclusions based on results.


When using the scientific method which step comes last?

Draw conclusions based on results.


How do you draw 105 degree angle by using compass?

In conjunction with a straight edge and a protractor


What do scientists draw after they get their research?

Using the scientific method, a scientist may draw a conclusion, part of a conclusion or draw up a new question after they complete their research.


When using scientific method which steps come last?

Draw conclusions based on results.