+ 1
flight time code section
How do I go with flight aspect, calculating the time difference in hours using float
6 Answers
+ 7
Prince Korankye ,
can you please update your post:
> if your question is related to a tutorial / exercise please mention this.
> to get helpful support please link your code here.
+ 8
Prince Korankye ,
Time=distance/speed
/ ----> it gives the answer in float
// ----> it is floor division gives whole number as answer
Try to code using this formula!!!
+ 5
Prince Korankye ,
distance =7425
time =550
speed = distance /time
print(speed)
It is correct I used that for highlighting purpose...
+ 3
Prince Korankye ,
Yeah speed = distance /time
But print statement should be like this ,
print(distance/time)====>speed
+ 1
Well, distance="7250"
Time="550"
Umm .. asking can this be possible to get correct floating digits with
Print<distance/time>
can I resolve , With the above đ description
+ 1
distance =7425
time =550
speed = distance /time
print(distance/time) ====>speed
I can observe something ^đ check out the error from the print line