a java program to solve equations of motion? (nothing scientific just a java query)
<p>this is not science at all i just need some help with java. so if you know, there are 3 equations of motion.</p>

<p>we will just focus on 1 that is v=u+at now forget all the technical terms. you can see there are 4 variables.</p>

<p>but if i try to calculate this in java, i will always have to ask the user to provide the values of u,a and t and provide the output v. but in real life, we can calculate the value of any of the variable in this equation if we have the other ones.</p>

<p>so, is there a way that all of the inputs are being asked and the users have the option to enter no input in one of the 4 inputs and that will be calculated.</p>

<p>example: if i enter 2=v,1=u and 3=a, and when i am asked the value of t, i just press enter. is there something i could do to find the blank space?</p>

<p>now i know there is a way to do an if loop but that will be quite lengthy and i am a bit lazy too. so i am just asking that is there a quick way to do this?</p>

<p>now i am a beginner who has limited knowledge of java so please don't be sarcastic and tell me if i am wrong, more likely where i am wrong.</p>

<p>thanks!</p>
