+ 1
Hw cn I make this prgrm more appropriate nd easy ?
1 Odpowiedź
+ 22
The code is working fine @immortal
@Deepak make variable z float data type
btw ur equation of circle is incorrect, it should be
(x-h)^2 +(y-k)^2 = r^2
so z = sqrt((x-h)^2+(y-k)^2)
U can decrease the variables by 👇
https://code.sololearn.com/cxplkBernIP0/?ref=app
i hope this helps 😊