3. Write a program in javascript to accept username from user and display it in Uppercase and Lowercase letters
Answers
Answered by
2
Answer:
Explanation:
import java.util.*;
class upper
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
String name;
System.out.println("Input your name");
name=sc.nextLine();
System.out.println("Name in upper case");
name=name.toUpperCase();
System.out.println(name);
System.out.println("Name in lower case");
name=name.toLowerCase();
System.out.println(name);
}
}
Similar questions