look at 12,13 line, why wrong? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

look at 12,13 line, why wrong?

why do I add these two lines to the wrong? if you get rid of these two lines. that's correct. https://code.sololearn.com/c6bWFcyY1zAH/?ref=app

9th May 2018, 9:50 AM
sweetswing2460
3 Answers
+ 2
Try changing the name of the variables.
9th May 2018, 8:56 PM
Gunagya Chordia
Gunagya Chordia - avatar
+ 1
Because you had previouslly declared 'x' and 'y' as int. You cannot afterwards declare them as doubles. Instead declare other variables like 'x1' and 'y1' and ith ahould work.
9th May 2018, 10:10 AM
Ulisses Cruz
Ulisses Cruz - avatar
0
You are good people You are smart people Thank you for your
11th May 2018, 6:40 AM
sweetswing2460