Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Very nice solution (except i should start at 5, not 6). I like it!!!
mazzafakka too easy
what the magic
Computers aren't super accurate at adding!
It prints what you asked for.
Not sure if I am dumb or if this Kata is. Maybe it's not a legit 6 and I am just missing something subtle.
I did end up liking this quite a bit because it made me do some math research. I think the initial equation you are given could be different. Instead of thinking about it like a programming problem, I thought of it as a physics problem which helped. That eliminated the use of the while or for loop. As a small hint: Find total flight time based of velocity and flight angle.
Remember, since the object being thrown does not exceed terminal velocity (specifically initial velocity), flight time should be symmetrical.
Can someone help me please? I'm new here and I cant increase the time(t) with 0.1
function maxBall(v0) {
v0=v01000/3600
var h=0, t=0, g=9.81, tmax=2v0/g, hmax=0
for(t=0;t<=tmax;t+=0.1)
{
console.log(t)
}
}
When ı run this code it gives me this
0
0.1
0.2
0.30000000000000004
0.4
0.5
0.6
0.7
0.7999999999999999
0.8999999999999999
0.9999999999999999
1.0999999999999999
why it isn't give me this: 0.1 0.2 0.3 0.4 0.5 .....
This comment is hidden because it contains spoiler information about the solution