Math, asked by s1272ananya14988, 5 months ago

If x and y are real numbers such x > 1 and y< -1 , then which of the following inequalities must be true? A. x/y > 1. ​

Answers

Answered by mdd19203
1

Answer:

Write a program to input a sentence and print the penultimate word of this sentence. Penultimate

word is the second last word of a sentence. (Assume that the Sentence is of 2 or more words)

E.g. Input : The quick brown fox jumps over a lazy dog. Output : lazyimport java.util.*;

public class Exercise60 {

public static void main(String[] args){

Scanner in = new Scanner(System.in);

System.out.print("Input a Sentence: ");

String line = in.nextLine();

String[] words = line.split("[ ]+");

System.out.println("Penultimate word: "+words[words.length - 2]);

}

}

Similar questions