KnowledgeBoat Logo
|

Computer Studies

Write a program in QBASIC format to find the value of 's' in the given equation, taking the suitable value of 'u' , 'v' and 'a' as input.

s = (v2 - u2) / 2a

QBASIC

QBASIC: Input Statement

51 Likes

Answer

Cls
Input "Enter the value of u"; u
Input "Enter the value of v"; v
Input "Enter the value of a"; a
Let s = (v * v - u * u) / (2 * a)
Print "Value of s = "; s
End

Output

Enter the value of u ? 20
Enter the value of v ? 30
Enter the value of a ? 5
Value of s = 50

Answered By

27 Likes


Related Questions