0

can we draw no of dashed line as the input given?

For example... If the user example is 10,2,7,5,11,5 Then the ouput must be 10 dashed line upwards and 2 dashed line downwards 7 upwards 5 downwards 11 upwards and 5 downwards.... Note: it should appear as a graph

31st Dec 2020, 8:32 AM
Solomon Simeon
Solomon Simeon - avatar
8 Answers
+ 4
Solomon Simeon Could you specify your Question little bit more ....
31st Dec 2020, 8:35 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 4
His Q in my dm :"I want to create a program where input number should be drawn as dashed line" Eg : input 10 , 2 , 5 ,7 The output should be 10 dashed line in upwards and 2 dashed line in downwards and 5 upwards and 7 downwards
31st Dec 2020, 9:01 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 3
Solomon Simeon Post your attempt first to get help from the community .
31st Dec 2020, 9:13 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 2
I think he meant something like this: https://www.sololearn.com/post/847119/?ref=app
31st Dec 2020, 9:26 AM
The future is now thanks to science
The future is now thanks to science - avatar
+ 2
Sorry. I am not expert in c,so this might help you: https://www.codewalk.org/2015/09/c-line-drawing-using-dda-algorithm.html#
31st Dec 2020, 9:28 AM
The future is now thanks to science
The future is now thanks to science - avatar
0
Check ur inbox
31st Dec 2020, 8:39 AM
Solomon Simeon
Solomon Simeon - avatar
0
Can u please help
31st Dec 2020, 8:39 AM
Solomon Simeon
Solomon Simeon - avatar
0
You
1st Jan 2021, 6:07 PM
Zamaneh