WAP in java to calculate the time period of a simple pendulum
Attachments:
Answers
Answered by
3
Answer:
import java.util.Scanner;
public class KboatSimplePendulum
{
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
System.out.print("Enter length: ");
double l = in.nextDouble();
System.out.print("Enter g: ");
double g = in.nextDouble();
double t = 2 * (22.0 / 7.0) * Math.sqrt(l/g);
System.out.println("T = " + t);
}
}
Explanation:
hope it helps you
please mark me as brainliest army (◍•ᴗ•◍)❤(◍•ᴗ•◍)❤(◍•ᴗ•◍)❤
Similar questions
Social Sciences,
3 hours ago
Computer Science,
5 hours ago
History,
5 hours ago
Physics,
8 months ago
Math,
8 months ago
Chemistry,
8 months ago