Can anyone code for line equation in c | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can anyone code for line equation in c

y=MX+c

14th Mar 2018, 1:40 PM
Karthikreddy
Karthikreddy - avatar
2 Answers
+ 6
just take user input as m & x & c ... for m as slope , x as x-coordinate & c as y-intercept & calculate y-coordinate using above formula U want to plot that line on a graph also very easily
14th Mar 2018, 1:51 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
0
I need code if possible plzz post it
14th Mar 2018, 2:02 PM
Karthikreddy
Karthikreddy - avatar