What is the actual code for it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

What is the actual code for it?

Montu and Kislu are very good friend. They are always playing together. One day they are playing very interesting game which name is “Calculate Distance” they have another friend his name is Bishu. In this game Montu stands in one point and Kislu stands in another point corresponding to the X and Y axes of two points from the plan, for Example P1(x1, y1) and P2(x2, y2). Bishu calculating the distance between his two friends. Showing the final result decimal places after the comma, according to this Formula sqrt=(pow((x2-x1),2)+pow((y2-y1),2)) INPUT: The first line contains a positive integer T (T <= 100), number of test case. In the following T lines, you will give four floating numbers like x1, y1, x2 and y2. OUTPUT: For each case print the case number, and print the value of distance between themes. Sample Input...................................Output 3 1.0 7.0 5.0 9.0.................Case 1: 4.4721 0.02 0.001 0.0 0.2............. Case 2: 0.2000 2.0 4.0 1.0 3.0.................. Case 3: 1.4142

14th Oct 2018, 7:00 PM
Emon Hossain Foysal
Emon Hossain Foysal - avatar
7 Answers
+ 2
Tesla this is homework
15th Oct 2018, 9:31 AM
Austin Kline
Austin Kline - avatar
+ 2
why? noone is going to do your homwork? and my code works perfectly!
16th Oct 2018, 10:48 AM
Roneel
Roneel - avatar
+ 1
https://www.sololearn.com/discuss/1316935/?ref=app look here. first you should try and show difficulties to us. Tesla Anyway I have solved your problem. https://code.sololearn.com/cJWpVBdh9OXe/?ref=app
16th Oct 2018, 6:59 AM
Roneel
Roneel - avatar
0
Please somebody help me.
14th Oct 2018, 7:00 PM
Emon Hossain Foysal
Emon Hossain Foysal - avatar
0
yeah
16th Oct 2018, 6:56 AM
Emon Hossain Foysal
Emon Hossain Foysal - avatar
0
yourCodeDon'tRunPleaseWriteItInC
16th Oct 2018, 10:44 AM
Emon Hossain Foysal
Emon Hossain Foysal - avatar
- 1
MyHomeWorkMustSubmitInC
16th Oct 2018, 10:54 AM
Emon Hossain Foysal
Emon Hossain Foysal - avatar