Computer Science, asked by AshikaAgrawal, 9 months ago

please type out the program to me plss​

Attachments:

Answers

Answered by hoangmustang
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