Answer:
Explanation:
(i) L1+L2 Error:
L1=[10,12,14]
L2=[20,22,24] # {n. 2 delete}
L1+L2
ans =
30 34 38
(ii) L1*2
ans =
20 24 28
(iii) L1
L1 =
10 12 14
The graph would have to be pointing completely down to be falling freely.
Answer:
hope this helps
Explanation:
import java.util.Scanner;
public class Problem3 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("Enter start value: ");
int start = in.nextInt();
System.out.print("Enter end value: ");
int end = in.nextInt();
if (start > end) {
int temp = start;
start = end;
end = temp;
}
for (int i = start; i <= end; i++) {
if (i % 2 == 1) {
System.out.print(i);
if (i == end || i + 1 == end) {
System.out.println();
} else {
System.out.print(", ");
}
}
}
}
}