answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

int main()

{

int i=0,opt;

printf("Enter your choice\n");

printf("1. Horizontal line");

printf("\n2. Vertical line\n");

scanf("%d",&opt);

if(opt==1)

{

for(i=0;i<=50;i++)

printf("%c",196);

}

else

{

for(i=0;i<=40;i++)

printf("%c\n",179);

}

return 0;

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Using C programming language design a menu driven programme that will draw a straight line?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you design a web browser?

With an actual programming language


What is grammar in compiler design?

Is a specification for the syntax of a programming language.


What is unique about the Ada language design process?

it was the only programming language that was designed by a woman


What are robotics and programming?

Robotics is branch of technology used to design the robots in a particular programming language according the developer requirement.


How do you design webpages using C programming language?

Web-page designing and C-programming have nothing to do with each other.


This a prewritten function that is built into a programming language?

Library Function Starting out with Programming Logic and Design by Tony Gaddis Page 218


What is structured overlay problem in program language?

what is over lay problem in programming design


What have been the strongest influences on programming language design over the past 50 years?

Object oriented analysis and design.


Elements of assembly language programming What is A simple assembly scheme pass structure of assembler design of two pass assemblers a single pass assemblers what is macros?

what are the elements of assembly language programming?


Is database design language a programming language?

No, it doesn't comprise any binary or computer language syntax. It simply uses schematic to graphic representation of tables structures and attributes as a mechanism to ease to the design process.


What is e language and l language?

&quot;e language&quot; typically refers to Eiffel, a programming language known for its emphasis on object-oriented design. &quot;L language&quot; can refer to several different programming languages, such as Lisp, Lua, and LabVIEW, each with its own unique features and applications.


What skills of Flash programming language does one need to design a website?

The following skills of Flash programming are needed to design a website: HTML (Hypetext Markup Langauge), CSS (Cascading Style Sheets) and Javascript.