Answer:
import java.util.*;
public class PerfectNum{
public static String isPerfect(long number){
String s = "";
long sum = 0;
//Checking if the number is perfect or not
for(long i = 1; i < number; i++){
if(number % i == 0){
sum += i;
}
}
if(sum == number){
for(long i = 1; i < number; i++){
String t = "";
if(number % i == 0){
long n = i;
//Converting into string
while(n > 0){
long p = n % 10;
t += (char)(p + '0');
n /= 10;
}
//Reversing the number
for(int j = t.length() - 1; j >= 0; j--){
s += t.charAt(j);
}
s += " ";
}
}
}
return s;
}
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
System.out.println("Enter maximum number");
long n = sc.nextLong();
System.out.println("Displaying perfect numbers 2 to " + n);
for(long i = 2; i <= n; i++){
String s = isPerfect(i);
if(s != "")
System.out.println(s +"->" + i);
}
}
}
Answer:
The answer is 11.7 ft
Explanation:
You can use the combined gas law from Boyle's law, Charles's law, and Gay-Lussac's Law. Only because hydrogen behaves like an ideal gas for this conditions.
where the subscripts denote the pressure "p", volume "V" and the temperature "T" (in Kelvin) at two different times. Let's consider as the balloom at 150,000 ft so
and .
Then, is the moment when the balloon is on the ground.
and .
From the first equation,
, then
and the radius would be
.
Answer:
answer is B I hope it helps