Computer Science, asked by aftab91825, 11 months ago

Java Programming
The time period of a simple pendulum is given by the formula :
t = 2\pi \sqrt{ \frac{l}{g} }
write a program to calculate the time period of a simple pendulum by taking length and acceleration due to gravity (g) as input :
\pi =  \frac{22}{7}


Answers

Answered by kapilsaraswat781
5

int g=Integer.parseInt (br.readLine ());

int l=Integer.parseInt (br.readLine ());

t=2×3.14×Math.pow(l/g,1/2);

System.out.print (t);


aftab91825: but pai ka value 22/7 dena hai
aftab91825: bhai aakbar step by step likh do iss program ko
Similar questions