please type out the program to me plss
Attachments:
Answers
Answered by
1
Answer:
DUDE, CHECK OUT MY SOLUTION
package newPackage;
import java.util.*;
public class wordLength {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("ENTER A WORD: ");
String L = input.nextLine();//input the word
System.out.println(L.length() <= 5?"small":"large");
//if the length <= 5 print small otherwise print large
}
}
Explanation:
BRAINLIEST IF IT HELPFUL! ALL IS WRITTEN IN JAVA.
Similar questions
India Languages,
3 months ago
Math,
3 months ago
Math,
7 months ago
Math,
11 months ago
Science,
11 months ago