Math | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Math

How do I get this to do math problems for me and is there some way to get it to remember the answers? I'm not trying to cheat on my homework I've just had an idea

12th Feb 2018, 2:44 AM
Tristan Barker
Tristan Barker - avatar
23 Answers
+ 3
ok, so you wanted to find slope of two points. interesting idea!!
24th Feb 2018, 3:41 PM
‎ ‏‏‎Anonymous Guy
+ 1
thank you! I see this as a stepping stone to a larger system I want to make one day. Ivebeen imagining that the programming and equations or functions would work together well
15th Feb 2018, 11:46 PM
Tristan Barker
Tristan Barker - avatar
+ 1
system.out.println(a+"/"+b) i hope this is what you want
16th Feb 2018, 2:19 PM
‎ ‏‏‎Anonymous Guy
+ 1
my c++ is better than java so if you have any doubt in c++ feel free to ask
16th Feb 2018, 2:25 PM
‎ ‏‏‎Anonymous Guy
18th Feb 2018, 2:54 AM
‎ ‏‏‎Anonymous Guy
+ 1
m is the slope. when I did math in high school finding the slope of a line is y2-y1/x2-x1=m
24th Feb 2018, 3:02 PM
Tristan Barker
Tristan Barker - avatar
+ 1
ok that's a big aim good luck man
24th Feb 2018, 4:13 PM
‎ ‏‏‎Anonymous Guy
0
that's not cheating. moreover if you try to make a program for solving something, you'll understand the problem and the programming language better. i think you should start working on it.
12th Feb 2018, 3:41 AM
‎ ‏‏‎Anonymous Guy
0
https://code.sololearn.com/cALRoIuLy9vq/?ref=app so instead of doing system.out.println(m) I did y over x another way because I don't want it to reduce. is there a better way to do this.
16th Feb 2018, 4:51 AM
Tristan Barker
Tristan Barker - avatar
0
sorry bro i can't understand your question
16th Feb 2018, 1:51 PM
‎ ‏‏‎Anonymous Guy
0
the answer is 2/1 but it comes out at 2 because it reduces
16th Feb 2018, 1:56 PM
Tristan Barker
Tristan Barker - avatar
0
I feel like it is
16th Feb 2018, 2:20 PM
Tristan Barker
Tristan Barker - avatar
0
try it in your code
16th Feb 2018, 2:22 PM
‎ ‏‏‎Anonymous Guy
16th Feb 2018, 2:23 PM
Tristan Barker
Tristan Barker - avatar
0
it works. it's very similar to my method but with one system printin which is just what I wanted thanks
16th Feb 2018, 2:23 PM
Tristan Barker
Tristan Barker - avatar
0
I will. I'm learning c++ too
16th Feb 2018, 2:29 PM
Tristan Barker
Tristan Barker - avatar
17th Feb 2018, 10:56 PM
Tristan Barker
Tristan Barker - avatar
0
HALP PLEASE
17th Feb 2018, 10:56 PM
Tristan Barker
Tristan Barker - avatar
0
please explain, why did you declare string m = slope also slope was not declared before it's use in string m
18th Feb 2018, 3:02 AM
‎ ‏‏‎Anonymous Guy
0
nice. I found one called value of too or something. I changed it again because doing m didn't work
19th Feb 2018, 9:22 PM
Tristan Barker
Tristan Barker - avatar